docs: static EvaluatedCondition evaluate(Condition condition, QualityGateEvaluator.Measures measures) {
      Optional<QualityGateEvaluator.Measure> measure = measures.get(condition.getMetricKey());
      if (!measure.isPresent()) {
        return new EvaluatedCondition(condition, EvaluationStatus.OK, null);
      }
  
      Optional<Comparable> value = getMeasureValue(condition, measure.get());
      if (!value.isPresent()) {
        return new EvaluatedCondition(condition, EvaluationStatus.OK, null);
      }
  
      ValueType type = measure.get().getType();
      return evaluateCondition(condition, type, value.get())
        .orElseGet(() -> new EvaluatedCondition(condition, EvaluationStatus.OK, value.get().toString()));
    }