ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch (role) { default: return null; case ChildRole.REFERENCE_NAME: return findChildByType(JavaTokenType.IDENTIFIER); case ChildRole.QUALIFIER: TreeElement node = getFirstChildNode(); return node.getElementType() == JavaElementType.JAVA_CODE_REFERENCE ? node : null; case ChildRole.DOT: return findChildByType(JavaTokenType.DOT); } }