code: private boolean parametersAreEqual(MimeType other) {
          if (this.parameters.size() != other.parameters.size()) {
              return false;
          }
  
          for (String key : this.parameters.keySet()) {
              if (!other.parameters.containsKey(key)) {
                  return false;
              }
  
              if (PARAM_CHARSET.equals(key)) {
                  if (!ObjectUtils.nullSafeEquals(getCharset(), other.getCharset())) {
                      return false;
                  }
              } else if (!ObjectUtils.nullSafeEquals(this.parameters.get(key), other.parameters.get(key))) {
                  return false;
              }
          }
  
          return true;
      }
docs: Determine if the parameters in this {@code Mime} and the supplied {@code Mime} are equal, performing
  case-insensitive comparisons for charsets.