public static void markDirtyDependenciesForInitialRound(CompileContext context, DirtyFilesHolder<JavaSourceRootDescriptor, ModuleBuildTarget> dfh, ModuleChunk chunk) throws IOException {
    BuildDataManager dataManager = context.getProjectDescriptor().dataManager;
    GraphConfiguration graphConfig = dataManager.getDependencyGraph();
    if (isDepGraphEnabled() && graphConfig != null) {
      NodeSourcePathMapper mapper = graphConfig.getPathMapper();
      Set<NodeSource> toCompile = new HashSet<>();
      dfh.processDirtyFiles((target, file, root) -> toCompile.add(mapper.toNodeSource(file)));
      if (!toCompile.isEmpty() || hasRemovedPaths(chunk, dfh)) {
        Delta delta = graphConfig.getGraph().createDelta(
          toCompile, Iterators.map(getRemovedPaths(chunk, dfh), mapper::toNodeSource), true
        );
        updateDependencyGraph(context, delta, chunk, CompilationRound.CURRENT, null);
      }
    }
    else {
      if (hasRemovedPaths(chunk, dfh)) {
        final Mappings delta = dataManager.getMappings().createDelta();
        final Set<File> empty = Collections.emptySet();
        updateMappings(context, delta, dfh, chunk, empty, empty, CompilationRound.CURRENT, null);
      }
    }
  }
public static void markDirtyDependenciesForInitialRound(CompileContext context, DirtyFilesHolder<JavaSourceRootDescriptor, ModuleBuildTarget> dfh, ModuleChunk chunk)