void (@NotNull VirtualFile parent, @NotNull ListResult oldChildren, @NotNull ListResult newChildren) { // find children which are added to the list and call updateSymlinkInfoForNewChild() on them (once) ContainerUtil.processSortedListsInOrder( oldChildren.children, newChildren.children, Comparator.comparingInt(ChildInfo::getId), /*mergeEqualItems: */ true, (childInfo, mergeResult) -> { if (mergeResult != ContainerUtil.MergeResult.COPIED_FROM_LIST1) { updateSymlinkInfoForNewChild(parent, childInfo); } }); }