void (final @NotNull Project project, final @NotNull List<VirtualFile> gitRoots, final @NotNull VirtualFile defaultRoot) { GitTagDialog d = new GitTagDialog(project, gitRoots, defaultRoot); if (d.showAndGet()) { new Task.Modal(project, GitBundle.message("tag.progress.title"), true) { @Override public void run(@NotNull ProgressIndicator indicator) { d.runAction(); } }.queue(); } }