/** * Creates a notifier that can announce the registered listeners. * * @param listenerType the type of the listeners * @param <T> the type of the listeners * @return a notifier that can announce the registered listeners */ public static <T extends EventListener> Announcer<T> to(Class<? extends T> listenerType) { return new Announcer<>(listenerType); }