Set<String> (ModuleChunk chunk, DirtyFilesHolder<JavaSourceRootDescriptor, ModuleBuildTarget> dirtyFilesHolder) { if (!dirtyFilesHolder.hasRemovedFiles()) { return Collections.emptySet(); } final Set<String> removed = CollectionFactory.createFilePathSet(); for (ModuleBuildTarget target : chunk.getTargets()) { removed.addAll(dirtyFilesHolder.getRemovedFiles(target)); } return removed; }