docs: private static void addBestValuesToMeasures(List<LiveMeasureDto> measures, ComponentDto component, Collection<MetricDto> metrics) {
      if (!QUALIFIERS_ELIGIBLE_FOR_BEST_VALUE.contains(component.qualifier())) {
        return;
      }
  
      List<MetricDtoWithBestValue> metricWithBestValueList = metrics.stream()
        .filter(MetricDtoFunctions.isOptimizedForBestValue())
        .map(MetricDtoWithBestValue::new)
        .collect(MoreCollectors.toList(metrics.size()));
      Map<Integer, LiveMeasureDto> measuresByMetricId = Maps.uniqueIndex(measures, LiveMeasureDto::getMetricId);
  
      for (MetricDtoWithBestValue metricWithBestValue : metricWithBestValueList) {
        if (measuresByMetricId.get(metricWithBestValue.getMetric().getId()) == null) {
          measures.add(metricWithBestValue.getBestValue());
        }
      }
    }