docs: protected M getMonitorForCurrentContext() {
      MonitorConfig contextConfig = getConfig();
      M monitor = monitors.get(contextConfig);
      if (monitor == null) {
        M newMon = newMonitor.apply(contextConfig);
        if (newMon instanceof SpectatorMonitor) {
          ((SpectatorMonitor) newMon).initializeSpectator(spectatorTags);
        }
        monitor = monitors.putIfAbsent(contextConfig, newMon);
        if (monitor == null) {
          monitor = newMon;
        }
      }
      return monitor;
    }