docs: public void addConnectedEventListener(Executor executor, PeerConnectedEventListener listener) {
          peerConnectedEventListeners.add(new ListenerRegistration<>(checkNotNull(listener), executor));
          for (Peer peer : getConnectedPeers())
              peer.addConnectedEventListener(executor, listener);
          for (Peer peer : getPendingPeers())
              peer.addConnectedEventListener(executor, listener);
      }