docs: private static void defineUrlParserParameters(UrlParser urlParser, Properties properties,
        String hostAddressesString,
        String additionalParameters) {
  
      if (additionalParameters != null) {
        //noinspection Annotator
        Matcher matcher = URL_PARAMETER.matcher(additionalParameters);
  
        if (matcher.find()) {
  
          urlParser.database = matcher.group(2);
          urlParser.options = DefaultOptions
              .parse(urlParser.haMode, matcher.group(4), properties, urlParser.options);
          DefaultOptions.optionCoherenceValidation(urlParser.options);
          if (urlParser.database != null && urlParser.database.isEmpty()) {
            urlParser.database = null;
          }
  
        } else {
  
          urlParser.database = null;
          urlParser.options = DefaultOptions
              .parse(urlParser.haMode, "", properties, urlParser.options);
          DefaultOptions.optionCoherenceValidation(urlParser.options);
  
        }
  
      } else {
  
        urlParser.database = null;
        urlParser.options = DefaultOptions.parse(urlParser.haMode, "", properties, urlParser.options);
        DefaultOptions.optionCoherenceValidation(urlParser.options);
  
      }
  
      LoggerFactory.init(urlParser.options.log
          || urlParser.options.profileSql
          || urlParser.options.slowQueryThresholdNanos != null);
      urlParser.addresses = HostAddress.parse(hostAddressesString, urlParser.haMode);
    }