docs: private long computeTimeoutMillis(String type) {
      DescriptiveStatistics samples = replySamples.get(type);
      if (samples == null || samples.getN() < MIN_SAMPLES) {
        return MAX_TIMEOUT_MILLIS;
      }
      return Math.min(Math.max((int) samples.getMax() * TIMEOUT_FACTOR, MIN_TIMEOUT_MILLIS), MAX_TIMEOUT_MILLIS);
    }