ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch (role) { default: return null; case ChildRole.PACKAGE_STATEMENT: return findChildByType(JavaElementType.PACKAGE_STATEMENT); case ChildRole.IMPORT_LIST: return findChildByType(JavaElementType.IMPORT_LIST); } }