private static List<Parameter> collectParameters(Class<?> clazz, Executable executable,
                                                     Parameter parameter, boolean collectSuperClassesFirst) {
        final ImmutableList.Builder<Parameter> parameterCollector = ImmutableList.builder();
        for (Method targetMethod : collectMethods(clazz, executable, collectSuperClassesFirst)) {
            Arrays.stream(targetMethod.getParameters())
                  .filter(p -> p.getName().equals(parameter.getName()))
                  .findAny()
                  .ifPresent(parameterCollector::add);
        }
        return parameterCollector.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