void (@NotNull FilePath path, @NotNull Int2ObjectMap<Int2ObjectMap<VcsLogPathsIndex.ChangeKind>> affectedCommits) { for (Map.Entry<EdgeData<Integer>, EdgeData<FilePath>> entry : renamesMap.entrySet()) { int childCommit = entry.getKey().child; if (affectedCommits.containsKey(childCommit)) { EdgeData<FilePath> rename = entry.getValue(); VcsLogPathsIndex.ChangeKind newKind; if (FILE_PATH_HASHING_STRATEGY.equals(rename.child, path)) { newKind = VcsLogPathsIndex.ChangeKind.ADDED; } else if (FILE_PATH_HASHING_STRATEGY.equals(rename.parent, path)) { newKind = VcsLogPathsIndex.ChangeKind.REMOVED; } else { continue; } Int2ObjectMap<VcsLogPathsIndex.ChangeKind> changesMap = affectedCommits.get(childCommit); changesMap.keySet().forEach(key -> { changesMap.put(key, newKind); }); } } }