docs: public static MetricCollector createMetricCollector(String className)
              throws ClassNotFoundException, IllegalAccessException, InstantiationException {
          Class<?> clazz = Class.forName(className);
          if (!MetricCollector.class.isAssignableFrom(clazz)) {
              throw new IllegalArgumentException(String.format("The class '%s' is not assignable to '%s'.",
                      className, MetricCollector.class.getName()));
          }
  
          return (MetricCollector) clazz.newInstance();
      }