code: public static MetricName build(String... parts) {
          if (parts == null || parts.length == 0)
              return MetricName.EMPTY;
  
          if (parts.length == 1)
              return new MetricName(parts[0], EMPTY_TAGS);
  
          return new MetricName(buildName(parts), EMPTY_TAGS);
      }
docs: Build a new metric name using the specific path components.
  
  @param parts Path of the new metric name.
  @return A newly created metric name with the specified path.