docs: Double resettableFunctionalCounter(String functionalCounterKey, DoubleSupplier function) {
          Double result = function.getAsDouble();
          Double previousResult = previousValueCacheMap.getOrDefault(functionalCounterKey, 0D);
          Double beforeResetValue = beforeResetValuesCacheMap.getOrDefault(functionalCounterKey, 0D);
          Double correctedValue = result + beforeResetValue;
  
          if (correctedValue < previousResult) {
              beforeResetValuesCacheMap.put(functionalCounterKey, previousResult);
              correctedValue = previousResult + result;
          }
          previousValueCacheMap.put(functionalCounterKey, correctedValue);
          return correctedValue;
      }