Hash (@NotNull HgRepository repository, @NotNull final String bookmarkName) { HgNameWithHashInfo bookmarkInfo = ContainerUtil.find(repository.getBookmarks(), info -> info.getName().equals(bookmarkName)); return bookmarkInfo != null ? bookmarkInfo.getHash() : null; }