private static ProgressEventDispatcher newProgressEventDispatcher(
      EventHandlers eventHandlers, Allocation allocation) {
    ProgressEventDispatcher progressEventDispatcher =
        new ProgressEventDispatcher(eventHandlers, allocation);
    progressEventDispatcher.dispatchProgress(0);
    return progressEventDispatcher;
  }
Creates a new {@link ProgressEventDispatcher} and dispatches a new {@link ProgressEvent} with
progress 0 for {@code allocation}.

@param eventHandlers the {@link EventHandlers}
@param allocation the {@link Allocation} to manage
@return a new {@link ProgressEventDispatcher}
jib-core/src/main/java/com/google/cloud/tools/jib/builder/ProgressEventDispatcher.java