docs: boolean addListenersForMonitor(Object monitor, Set<ProbeListener> listeners) {
          listenersLock.writeLock().lock();
          try {
              if (listenersForMonitor.containsKey(monitor)) {
                  return false;
              }
              listenersForMonitor.put(monitor, listeners);
              allRegisteredListeners.addAll(listeners);
          } finally {
              listenersLock.writeLock().unlock();
          }
  
          return true;
      }