docs: public static MetricType from(Metric in) {
          if (Gauge.class.isInstance(in))
              return MetricType.GAUGE;
          if (Counter.class.isInstance(in))
              return MetricType.COUNTER;
          if (Histogram.class.isInstance(in))
              return MetricType.HISTOGRAM;
          if (Meter.class.isInstance(in))
              return MetricType.METERED;
          if (Timer.class.isInstance(in))
              return MetricType.TIMER;
          return MetricType.INVALID;
      }