private static @NotNull TaskInfo task(@NotNull @NlsContexts.DialogTitle String title, boolean canBeCancelled) {
    return new Task.Modal(null, title, canBeCancelled) {
      @Override
      public void run(@NotNull ProgressIndicator indicator) {
      }
    };
  }
private static @NotNull TaskInfo task(@NotNull @NlsContexts.DialogTitle String title, boolean canBeCancelled)