public <A> Collection<AnnotationTarget<MethodInfo, A>> resolveMethods( ClassTypeInfo cti, AnnotationType<A, ?> annotationClass) { ArrayList<AnnotationTarget<MethodInfo, A>> methods = new ArrayList<AnnotationTarget<MethodInfo, A>>(); AnnotationIntrospector<A> introspector = new AnnotationIntrospector<A>(annotationClass); for (MethodInfo method : getMethods(cti)) { AnnotationTarget<MethodInfo, A> annotation = introspector.resolve(method); if (annotation != null) { methods.add(annotation); } } return methods; }