void (@NotNull String name, @NotNull List<? extends GitRepository> repositories) { new CommonBackgroundTask(myProject, GitBundle.message("branch.checking.out.new.branch.process", name), null) { @Override public void execute(@NotNull ProgressIndicator indicator) { newWorker(indicator).checkoutNewBranch(name, repositories); } }.runInBackground(); }