List<ASTNode> (final ASTNode node) { List<ASTNode> children = visibleChildren(node); if (!children.isEmpty()) { ASTNode first = children.get(0); if (first.getElementType() == mLCURLY) children.remove(0); } if (!children.isEmpty()) { ASTNode last = children.get(children.size() - 1); if (last.getElementType() == GroovyTokenTypes.mRCURLY) children.remove(children.size() - 1); } return children; }