void (@NotNull String newBranchName, @NotNull String startPoint, boolean overwriteIfNeeded, @NotNull List<? extends GitRepository> repositories, @Nullable Runnable callInAwtLater) { new CommonBackgroundTask(myProject, GitBundle.message("branch.checking.out.branch.from.process", newBranchName, startPoint), callInAwtLater) { @Override public void execute(@NotNull ProgressIndicator indicator) { newWorker(indicator).checkoutNewBranchStartingFrom(newBranchName, startPoint, overwriteIfNeeded, repositories); } }.runInBackground(); }