void (@NotNull AnActionEvent e) { final String name = getNewBranchNameFromUser(myPreselectedRepo, HgBundle.message("hg4idea.branch.create")); if (name == null) { return; } new Task.Backgroundable(myProject, HgBundle.message("hg4idea.branch.creating.progress", myRepositories.size())) { @Override public void run(@NotNull ProgressIndicator indicator) { createNewBranchInCurrentThread(name); } }.queue(); }