code: protected int scoreByFormat(Option<FormatOption> formatOption, MediaType requiredMediaType) {
          if (!formatOption.isDefined()) {
              return DEFAULT_SCORE;
          }
          if (formatOption.get().mediaType().matches(requiredMediaType)) {
              return MAXIMUM_FORMAT_SCORE;
          }
          return DEFAULT_SCORE;
      }
docs: Computes a score by checking the value of the '$format' parameter (if present) against a required media type.
  
  @param formatOption      The option containing the '$format' parameter.
  @param requiredMediaType The required media type.
  @return A score that indicates if the media type present in the '$format' parameter
  matches the required media type.