code: public static Field[] getFieldsWithAnnotation(final Class<?> cls, final Class<? extends Annotation> annotationCls) {
          final List<Field> annotatedFieldsList = getFieldsListWithAnnotation(cls, annotationCls);
          return annotatedFieldsList.toArray(new Field[annotatedFieldsList.size()]);
      }
docs: Gets all fields of the given class and its parents (if any) that are annotated with the given annotation.
  @param cls
  the {@link Class} to query
  @param annotationCls
  the {@link Annotation} that must be present on a field to be matched
  @return an array of Fields (possibly empty).
  @throws IllegalArgumentException
  if the class or annotation are {@code null}
  @since 3.4