private static Set<MediaType> consumableMediaTypes(Method method, Class<?> clazz) {
        List<Consumes> consumes = AnnotationUtil.findAll(method, Consumes.class);

        if (consumes.isEmpty()) {
            consumes = AnnotationUtil.findAll(clazz, Consumes.class);
        }

        final List<MediaType> types =
                consumes.stream()
                        .map(Consumes::value)
                        .map(MediaType::parse)
                        .collect(toImmutableList());
        return listToSet(types, Consumes.class);
    }
Returns the set of {@link MediaType}s specified by {@link Consumes} annotation.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotatedServiceFactory.java