docs: public static boolean supports(String mediaType, ResultType expectedType) {
      if (mediaType == null) return true; // Assume the server will choose a reasonable media type.
  
      ResponseFormat format = mimeFormats.get(stripParams(mediaType));
      return (format != null && (expectedType == null || format.resultTypes.contains(expectedType)));
    }