code: public static void setCommonAttributes(List<Metric> metrics, Metric result) {
          MetricDistiller distiller = new MetricDistiller();
  
          distiller.distill(metrics);
          result.setDisplayName(distiller.getDisplayName());
          result.setUnits(distiller.getUnits());
          result.setTags(distiller.getTags());
      }
docs: Filters common attributes from list of metrics and writes them to result metric.
  
  @param  metrics  - The set of metrics that needs to be filtered
  @param  result   - The resultant metric that gets populated with the common tags