void (Class<?> clazz, Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations) { for (Class<?> superInterface : clazz.getInterfaces()) { for (Method eachMethod : MethodSorter.getDeclaredMethods(superInterface)) { addToAnnotationLists(new FrameworkMethod(eachMethod), methodsForAnnotations); } scanAnnotatedMethodsInInterfaces(superInterface, methodsForAnnotations); } Class<?> superClass = clazz.getSuperclass(); if (superClass != null) { scanAnnotatedMethodsInInterfaces(superClass, methodsForAnnotations); } }