docs: private static void addBestValuesToMeasures(Table<String, MetricDto, ComponentTreeData.Measure> measuresByComponentUuidAndMetric, List<ComponentDto> components,
      List<MetricDto> metrics) {
      List<MetricDtoWithBestValue> metricDtosWithBestValueMeasure = metrics.stream()
        .filter(MetricDtoFunctions.isOptimizedForBestValue())
        .map(new MetricDtoToMetricDtoWithBestValue())
        .collect(MoreCollectors.toList(metrics.size()));
      if (metricDtosWithBestValueMeasure.isEmpty()) {
        return;
      }
  
      Stream<ComponentDto> componentsEligibleForBestValue = components.stream().filter(ComponentTreeAction::isFileComponent);
      componentsEligibleForBestValue.forEach(component -> {
        for (MetricDtoWithBestValue metricWithBestValue : metricDtosWithBestValueMeasure) {
          if (measuresByComponentUuidAndMetric.get(component.uuid(), metricWithBestValue.getMetric()) == null) {
            measuresByComponentUuidAndMetric.put(component.uuid(), metricWithBestValue.getMetric(),
              ComponentTreeData.Measure.createFromMeasureDto(metricWithBestValue.getBestValue()));
          }
        }
      });
    }