boolean (@NotNull Change change, @NotNull Set<FilePath> pathsToMerge) { FilePath beforePath = getBeforePath(change); FilePath afterPath = getAfterPath(change); return beforePath != null && pathsToMerge.contains(beforePath) || afterPath != null && pathsToMerge.contains(afterPath); }