void (@NotNull Project project, @NotNull List<VirtualFile> gitRoots, @NotNull VirtualFile defaultRoot) { if (ChangeListManager.getInstance(project).isFreezedWithNotification(GitBundle.message("stash.error.can.not.stash.changes.now"))) { return; } GitStashDialog d = new GitStashDialog(project, gitRoots, defaultRoot); if (!d.showAndGet()) { return; } d.logUsage(); GitStashOperations.runStashInBackground(project, Collections.singleton(d.getGitRoot()), root -> d.handler()); }