docs: @SuppressWarnings("unchecked")
    public <L, E> EventLog<L, E> getOrCreateEventLog(Class<?> type, String name, Function<EventLog<L, E>, L> listenerFactory) {
      return eventRegistries.computeIfAbsent(type, t -> new ConcurrentHashMap<>())
          .computeIfAbsent(name, n -> new EventLog<>(listenerFactory));
    }