boolean (@NotNull HgRepository repository, @NotNull TaskInfo name) { return HgUtil.getNamesWithoutHashes(repository.getBookmarks()).contains(name.getName()) || repository.getOpenedBranches().contains(name.getName()); }