code: private static List<MediaType> consumableMediaTypes(Method method, Class<?> clazz) {
          List<Consumes> consumes = findAll(method, Consumes.class);
          List<ConsumeType> consumeTypes = findAll(method, ConsumeType.class);
  
          if (consumes.isEmpty() && consumeTypes.isEmpty()) {
              consumes = findAll(clazz, Consumes.class);
              consumeTypes = findAll(clazz, ConsumeType.class);
          }
  
          final List<MediaType> types =
                  Stream.concat(consumes.stream().map(Consumes::value),
                                consumeTypes.stream().map(ConsumeType::value))
                        .map(MediaType::parse)
                        .collect(toImmutableList());
          return ensureUniqueTypes(types, Consumes.class);
      }
docs: Returns the list of {@link MediaType}s specified by {@link Consumes} annotation.