docs: private void handleEvent(PrimitiveEvent event) {
      log.trace("Received {}", event);
      Set<Consumer<PrimitiveEvent>> listeners = eventListeners.get(event.type());
      if (listeners != null) {
        listeners.forEach(l -> l.accept(event));
      }
    }