ASTNode () { final ASTNode first = findChildByRole(ChildRole.LBRACE); if (first == null) return null; for (ASTNode child = first.getTreeNext(); child != null; child = child.getTreeNext()) { final IElementType childType = child.getElementType(); if (PsiImplUtil.isWhitespaceOrComment(child) || childType == ERROR_ELEMENT || childType == ENUM_CONSTANT) { } else if (childType == COMMA) { } else if (childType == SEMICOLON) { return child; } else { return PsiImplUtil.skipWhitespaceAndCommentsBack(child.getTreePrev()); } } return null; }