void handle(JibEvent jibEvent) {
    Preconditions.checkArgument(eventClass.isInstance(jibEvent));
    eventConsumer.accept(eventClass.cast(jibEvent));
  }
Handles a {@link JibEvent}.

@param jibEvent the event to handle
jib-core/src/main/java/com/google/cloud/tools/jib/event/Handler.java