docs: public static Counter counter(Metrics metrics, String component, String methodName) {
      if (metrics != null) {
        return metrics.getCounter(component, methodName);
      } else {
        return null;
      }
    }