docs: synchronized void checkThreshold() {
      Ratio failureRatio = circuit.getFailureThreshold();
  
      // Handle failure threshold ratio
      if (failureRatio != null && bitSet.occupiedBits() >= failureRatio.getDenominator()
          && bitSet.negativeRatioValue() >= failureRatio.getValue())
        circuit.open();
  
      // Handle no thresholds configured
      else if (failureRatio == null && bitSet.negativeRatioValue() == 1)
        circuit.open();
    }