public static void processFilesToRecompile(
     CompileContext context,
     ModuleChunk chunk,
     FileProcessor<JavaSourceRootDescriptor, ModuleBuildTarget> processor)
     throws IOException {
   for (ModuleBuildTarget target : chunk.getTargets()) {
     processFilesToRecompile(context, target, processor);
   }
 }
 public static void processFilesToRecompile(
     CompileContext context, ModuleChunk chunk, FileProcessor processor) throws IOException {
   //noinspection unchecked
   processFilesToRecompile(context, chunk, Condition.TRUE, processor);
 }