code: public void setMetricsToAnnotate(List<String> metricsToAnnotate) {
          this.metricsToAnnotate.clear();
          if (metricsToAnnotate != null && !metricsToAnnotate.isEmpty()) {
              for (String metric : metricsToAnnotate) {
                  requireArgument(getMetricToAnnotate(metric) != null, "Metrics to annotate should be of the form 'scope:metric[{[tagk=tagv]+}]");
                  this.metricsToAnnotate.add(metric);
              }
          }
      }
docs: Sets metrics to be annotated.
  
  @param  metricsToAnnotate  list of metrics.