class EventHandlers {

  public void dispatch(JibEvent jibEvent) {
    if (handlers.isEmpty()) {
      return;
    }
    handlers.get(JibEvent.class).forEach(handler -> handler.handle(jibEvent));
    handlers.get(jibEvent.getClass()).forEach(handler -> handler.handle(jibEvent));
  }

  private  EventHandlers(Multimap<Class<? extends JibEvent>, Handler<? extends JibEvent>> handlers);

}