ASTNode (int role) { final ASTNode result = super.findChildByRole(role); if (result != null) return result; if (role == ChildRole.IMPORT_REFERENCE) { final ASTNode importStaticReference = findChildByType(JavaElementType.IMPORT_STATIC_REFERENCE); if (importStaticReference != null) { return importStaticReference; } else { return findChildByType(JavaElementType.JAVA_CODE_REFERENCE); } } return null; }