boolean (@NotNull GitRepository repositoryToOperate) { ProgressManager.getInstance().run(new Task.Backgroundable(repositoryToOperate.getProject(), getProgressTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { performActionForRepository(repositoryToOperate.getProject(), repositoryToOperate, indicator); } }); return true; }