void (@NotNull List<String> branchNames, @NotNull List<? extends GitRepository> repositories) { if (branchNames.isEmpty()) return; String branchMsg = branchNames.size() == 1 ? branchNames.iterator().next() : StringUtil.join(branchNames, ", "); new CommonBackgroundTask(myProject, GitBundle.message("branch.deleting.remote.branch", branchMsg), null) { @Override public void execute(@NotNull ProgressIndicator indicator) { newWorker(indicator).deleteRemoteBranches(branchNames, repositories); } }.runInBackground(); }