ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch(role){ default: return null; case ChildRole.DOC_COMMENT: return PsiImplUtil.findDocComment(this); case ChildRole.NAME: return findChildByType(JavaTokenType.IDENTIFIER); case ChildRole.ARGUMENT_LIST: return findChildByType(EXPRESSION_LIST); case ChildRole.ANONYMOUS_CLASS: return findChildByType(ENUM_CONSTANT_INITIALIZER); case ChildRole.MODIFIER_LIST: return findChildByType(JavaElementType.MODIFIER_LIST); } }