docs: public void setWarningThreshold(double warningThreshold)
      {
          if(warningThreshold <= 0 || Double.isNaN(warningThreshold) || Double.isInfinite(warningThreshold))
              throw new IllegalArgumentException("warning threshold must be positive, not " + warningThreshold);
          this.warningThreshold = warningThreshold;
      }