code: public static Method[] getMethodsWithAnnotation(final Class<?> cls, final Class<? extends Annotation> annotationCls,
                                                      final boolean searchSupers, final boolean ignoreAccess) {
          final List<Method> annotatedMethodsList = getMethodsListWithAnnotation(cls, annotationCls, searchSupers,
                  ignoreAccess);
          return annotatedMethodsList.toArray(new Method[annotatedMethodsList.size()]);
      }
docs: Gets all methods of the given class that are annotated with the given annotation.
  @param cls
  the {@link Class} to query
  @param annotationCls
  the {@link java.lang.annotation.Annotation} that must be present on a method to be matched
  @param searchSupers
  determines if a lookup in the entire inheritance hierarchy of the given class should be performed
  @param ignoreAccess
  determines if non public methods should be considered
  @return an array of Methods (possibly empty).
  @throws IllegalArgumentException
  if the class or annotation are {@code null}
  @since 3.6