docs: public final void setRate(double permitsPerSecond) {
          Assert.isTrue(
                  permitsPerSecond > 0.0 && !Double.isNaN(permitsPerSecond), "rate must be positive");
          synchronized (mutex()) {
              doSetRate(permitsPerSecond, stopwatch.readMicros());
          }
      }