code: public boolean equalsIgnoreParameters(HttpMediaType mediaType) {
      return mediaType != null
          && getType().equalsIgnoreCase(mediaType.getType())
          && getSubType().equalsIgnoreCase(mediaType.getSubType());
    }
docs: Returns {@code true} if the specified media type has both the same type and subtype, or {@code
  false} if they don't match or the media type is {@code null}.