@Nullable
    public static SerializationFormat find(MediaType... ranges) {
        requireNonNull(ranges, "ranges");
        if (ranges.length == 0) {
            return null;
        }

        for (SerializationFormat f : values()) {
            if (f.isAccepted(Arrays.asList(ranges))) {
                return f;
            }
        }

        return null;
    }
Finds the {@link SerializationFormat} which is accepted by any of the specified media ranges.
core/src/main/java/com/linecorp/armeria/common/SerializationFormat.java