int (@NotNull CommitId commitId) { for (Int2ObjectMap.Entry<CommitId> entry : myNotLoadCommits.int2ObjectEntrySet()) { if (entry.getValue().equals(commitId)) { return entry.getIntKey(); } } return -1; }