docs: public boolean remove(MetricName name) {
          final Metric metric = metrics.remove(name);
          if (metric != null) {
              onMetricRemoved(name, metric);
              return true;
          }
          return false;
      }