TextRange (List<ASTNode> subStatements) { ASTNode first = subStatements.get(0); ASTNode last = subStatements.get(subStatements.size() - 1); return new TextRange(first.getTextRange().getStartOffset(), last.getTextRange().getEndOffset()); }