ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch (role) { default: return null; case ChildRole.PARAMETER_LIST: return findChildByType(ANNOTATION_PARAMETER_LIST); case ChildRole.CLASS_REFERENCE: return findChildByType(JAVA_CODE_REFERENCE); } }