static List<Annotation> getAnnotations(AnnotatedElement element, FindOption... findOptions) {
        requireNonNull(findOptions, "findOptions");
        return getAnnotations(element,
                              findOptions.length > 0 ? EnumSet.copyOf(ImmutableList.copyOf(findOptions))
                                                     : EnumSet.noneOf(FindOption.class));
    }
Returns all annotations searching from the specified {@code element}. The search range depends on
the specified {@link FindOption}s.

@param element the {@link AnnotatedElement} to find annotations
@param findOptions the options to be applied when retrieving annotations
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotationUtil.java