shouldNotAddWrapperElement = (
  block: BlockNodeRecord,
  contentState: ContentState,
): boolean => {
  const nextSiblingKey = block.getNextSiblingKey();

  return nextSiblingKey
    ? contentState.getBlockForKey(nextSiblingKey).getType() === block.getType()
    : false;
}
We will use this helper to identify blocks that need to be wrapped but have siblings that
also share the same wrapper element, this way we can do the wrapping once the last sibling
is added.