public Containerizer addEventHandler(Consumer<JibEvent> eventConsumer) {
    eventHandlersBuilder.add(JibEvent.class, eventConsumer);
    return this;
  }
Adds the {@code eventConsumer} to handle all {@link JibEvent} types. See {@link
#addEventHandler(Class, Consumer)} for more details.

@param eventConsumer the event handler
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java