code: private void ensureMetricsExist(String generator) {
          if (generator != null && !generatorMetricsMap.containsKey(generator)) {
              generatorMetricsMap.put(generator, new GeneratorMetrics(generator));
          }
      }
docs: ----------------------------------------------------------------------------------------------------------------------