Collection<FilePath> (@NotNull List<? extends Change> changes) { Set<FilePath> result = CollectionFactory.createCustomHashingStrategySet(ChangesUtil.CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY); ChangesUtil.getPaths(changes).forEach(path -> { if (result.add(path)) { addParents(result, path); } }); return result; }