code: public static List<Parameter> collectFieldParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) {
          final List<Parameter> parameters = new ArrayList<Parameter>();
          for (Field field : ReflectionUtils.getDeclaredFields(cls)) {
              final List<Annotation> annotations = Arrays.asList(field.getAnnotations());
              final Type genericType = field.getGenericType();
              parameters.addAll(collectParameters(genericType, annotations, components, classConsumes));
          }
          return parameters;
      }
docs: Collects field-level parameters from class.
  
  @param cls is a class for collecting
  @param components
  @return the collection of supported parameters