void (@NotNull Url branchLocation, @NotNull Runnable runnable) { new Task.Backgroundable(myProject, SvnBundle.message("progress.title.loading.branches"), true) { @Override public void onFinished() { runnable.run(); } @Override public void run(@NotNull ProgressIndicator indicator) { NewRootBunch manager = SvnBranchConfigurationManager.getInstance(myProject).getSvnBranchConfigManager(); manager.reloadBranches(myVcsRoot, branchLocation, InfoReliability.setByUser, false); } }.queue(); }