private static List<Method> collectMethods(Class<?> clazz, Executable executable,
                                               boolean collectSuperClassesFirst) {
        final ImmutableList.Builder<Method> methodCollector = ImmutableList.builder();
        for (Class<?> targetClass : collectClasses(clazz, collectSuperClassesFirst)) {
            try {
                final Method targetMethod = targetClass.getDeclaredMethod(executable.getName(),
                                                                          executable.getParameterTypes());
                methodCollector.add(targetMethod);
            } catch (NoSuchMethodException ignored) {
            }
        }
        return methodCollector.build();
    }
Collects the list of {@link AnnotatedElement}s which are to be used to find annotations.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotationUtil.java