code: public static void configure(MeterRegistry registry) {
          requireNonNull(registry, "registry");
          if (registry instanceof CompositeMeterRegistry) {
              ((CompositeMeterRegistry) registry).getRegistries().forEach(MoreNamingConventions::configure);
          }
  
          if (registryTypeMatches(registry, "io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry")) {
              registry.config().namingConvention(dropwizard());
          } else if (registryTypeMatches(registry, "io.micrometer.prometheus.PrometheusMeterRegistry")) {
              registry.config().namingConvention(prometheus());
          } else {
              // Probably OK to use the default.
          }
      }
docs: Configures the specified {@link MeterRegistry} to use the {@link NamingConvention}s provided by this
  class. {@link DropwizardMeterRegistry} and {@link PrometheusMeterRegistry} will be configured to use
  {@link #dropwizard()} and {@link #prometheus()} respectively. A {@link CompositeMeterRegistry} will be
  configured recursively.