public static <T extends Annotation, R> ImmutableList.Builder<R> getAnnotatedInstances(
            AnnotatedElement method, AnnotatedElement clazz, Class<T> annotationType, Class<R> resultType,
            DependencyInjector dependencyInjector) {
        final ImmutableList.Builder<R> builder = ImmutableList.builder();
        Stream.concat(findAll(method, annotationType).stream(), findAll(clazz, annotationType).stream())
              .forEach(annotation -> builder.add(
                      AnnotatedObjectFactory.getInstance(annotation, resultType, dependencyInjector)));
        return builder;
    }
Returns a {@link ImmutableList.Builder} which has the instances specified by the annotations of the
{@code annotationType}. The annotations of the specified {@code method} and {@code clazz} will be
collected respectively.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotationUtil.java