docs: public LoggingPreferences addPreferences(LoggingPreferences prefs) {
      if (prefs == null) {
        return this;
      }
      for (String logType : prefs.getEnabledLogTypes()) {
        enable(logType, prefs.getLevel(logType));
      }
      return this;
    }