Object (Class<? extends Annotation> annotationClass) { for (Method method : getHierarchy()) { Annotation annotation = method.getAnnotation(annotationClass); if (annotation != null) { return annotation; } } return NONE; }