protected static TextRange calculateTextRange(final List<? extends Block> subBlocks) {
    return new TextRange(subBlocks.get(0).getTextRange().getStartOffset(),
                         subBlocks.get(subBlocks.size() - 1).getTextRange().getEndOffset());
  }
protected static TextRange calculateTextRange(final List<? extends Block> subBlocks)