Intersection (@NotNull List<LocalChangeList> localChangeLists, @NotNull List<SvnChangeList> changeListsToMerge) { Set<FilePath> pathsToMerge = collectPaths(changeListsToMerge); return !changeListsToMerge.isEmpty() ? getChangesIntersection(localChangeLists, change -> hasPathToMerge(change, pathsToMerge)) : null; }