@Nullable
    public MediaType matchHeaders(CharSequence... acceptHeaders) {
        requireNonNull(acceptHeaders, "acceptHeaders");

        final List<MediaType> ranges = new ArrayList<>(4);
        for (CharSequence acceptHeader : acceptHeaders) {
            addRanges(ranges, acceptHeader);
        }
        return match(ranges);
    }
Finds the {@link MediaType} in this {@link List} that matches one of the media ranges specified in the
specified string.

@param acceptHeaders the values of the {@code "accept"} header, as defined in
       <a href="https://datatracker.ietf.org/doc/html/rfc2616#section-14.1">the section 14.1, RFC2616</a>
@return the most preferred {@link MediaType} that matches one of the specified media ranges.
        {@code null} if there are no matches or {@code acceptHeaders} does not contain any valid ranges.
core/src/main/java/com/linecorp/armeria/common/MediaTypeSet.java