code: public void addDiscoveredEventListener(Executor executor, PeerDiscoveredEventListener listener) {
          peerDiscoveredEventListeners.add(new ListenerRegistration<>(checkNotNull(listener), executor));
      }
docs: <p>Adds a listener that will be notified on the given executor when new
  peers are discovered.</p>