@RequiresEdt
  private static void finish(@NotNull Runnable result, @NotNull ProgressIndicator indicator) {
    if (!indicator.isCanceled()) result.run();
  }
@RequiresEdt
  private static void finish(@NotNull Runnable result, @NotNull ProgressIndicator indicator)