@NotNull
  public static CompileStatisticBuilderMessage create(@NotNull Set<? extends BuildTarget<?>> targets,
                                                      @NotNull String event) {
    List<TargetEvent>
      events = ContainerUtil.map(targets, target -> map(target, event.equals("STARTED")
                                                                ? StartTarget::new
                                                                : FinishTarget::new));
    return new CompileStatisticBuilderMessage(event, JSON.toJson(events));
  }
@NotNull
  public static CompileStatisticBuilderMessage create(@NotNull Set<? extends BuildTarget<?>> targets,
                                                      @NotNull String event)