void (@NotNull RegistrationEntry.RegistrationType listenerType, @NotNull List<? extends Listeners> listenerContainer) { processElements(listenerType, listenerContainer, Listeners::getListeners, Listeners.Listener::getListenerClassName ); processElements(RegistrationEntry.RegistrationType.LISTENER_TOPIC, listenerContainer, Listeners::getListeners, Listeners.Listener::getTopicClassName); }