List<FilePath> (@NotNull Collection<? extends ChangedPath> changes) { List<FilePath> files = new ArrayList<>(); for (ChangedPath change : changes) { if (CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY.equals(change.beforePath, change.afterPath)) { addIfNotNull(files, change.beforePath); } else { addIfNotNull(files, change.beforePath); addIfNotNull(files, change.afterPath); } } return files; }