docs: @SuppressWarnings("unchecked")
    private T unwrap(T meter) {
      T tmp = meter;
      while (tmp instanceof SwapMeter<?> && registry == ((SwapMeter<?>) tmp).registry) {
        tmp = ((SwapMeter<T>) tmp).underlying;
      }
      return tmp;
    }