code: private static int indexOfBlock(Block block, List<Block> blocks)
      {
          int position = 0;
  
          for (Block child : blocks) {
              if (child == block) {
                  return position;
              }
              ++position;
          }
  
          return -1;
      }
docs: Get the position of the provided block in the provided list of blocks.
  <p>
  Can't use {@link List#indexOf(Object)} since it's using {@link Object#equals(Object)} internally which is not
  what we want since two WordBlock with the same text or two spaces are equals for example but we want to be able
  to target one specific Block.
  
  @param block the block for which to find the position
  @param blocks the list of blocks in which to look for the passed block
  @return the position of the block, -1 if the block can't be found