@Nullable
    public MediaType match(MediaType range) {
        requireNonNull(range, "range");
        for (MediaType candidate : mediaTypes) {
            if (candidate.belongsTo(range)) {
                // With only one specified range, there is no way for candidates to have priority over each
                // other, we just return the first match.
                return candidate;
            }
        }
        return null;
    }
Finds the {@link MediaType} in this {@link List} that matches the specified media range.

@return the {@link MediaType} that matches the specified media range.
        {@code null} if there are no matches
core/src/main/java/com/linecorp/armeria/common/MediaTypeSet.java