docs: public void addWarning(SQLWarning warn) {
      //copy reference to avoid NPE from concurrent modification of this.warnings
      final PSQLWarningWrapper warnWrap = this.warnings;
      if (warnWrap == null) {
        this.warnings = new PSQLWarningWrapper(warn);
      } else {
        warnWrap.addWarning(warn);
      }
    }