void (@NotNull AnActionEvent e) { BackgroundTaskUtil.executeOnPooledThread(HgDisposable.getInstance(myProject), () -> { for (HgRepository repository : myRepositories) { HgBookmarkCommand.deleteBookmarkSynchronously(myProject, repository.getRoot(), myBranchName); } }); }