List<HgNameWithHashInfo> (@NotNull HgRepository repository, @NotNull final Hash currentRevisionHash) { return ContainerUtil.filter(repository.getBookmarks(), info -> !info.getHash().equals(currentRevisionHash)); }