@ApiStatus.Internal
  public static boolean runActionAndCancelBeforeWrite(@NotNull ApplicationEx application,
                                                      @NotNull Runnable cancellation,
                                                      @NotNull Runnable action) {
    return ProgressIndicatorUtilService.getInstance(application).runActionAndCancelBeforeWrite(cancellation, action);
  }
@ApiStatus.Internal
  public static boolean runActionAndCancelBeforeWrite(@NotNull ApplicationEx application,
                                                      @NotNull Runnable cancellation,
                                                      @NotNull Runnable action)