}
}
for (Class<? extends EventBase> eventClass : eventClasses) {
synchronized (listeners) {
listeners.add(new EventObject(listener, eventClass,
methodsWithAnnotation.stream().
filter(m -> m.getDeclaredAnnotation(EventListener.class).event().equals(eventClass)).sequential().
toArray(Method[]::new)));
}
}