docs: public boolean resetIfNecessary(RateBucketPeriod period) {
          long periodBoundary = getLastPeriodBoundary(period);
          if (System.currentTimeMillis() >= periodBoundary) {
              setCount(0);
              return true;
          }
          return false;
      }