void (@NotNull ProjectTaskManager.Result result) { result.getContext().getDirtyOutputPaths() .ifPresent(paths -> paths .map(path -> relativePath(path)) .forEach(dirtyOutputRoots::add)); result.getContext().getGeneratedFilesRoots() .forEach(generatedRoot -> { Set<String> generatedFilesRelativePaths = result.getContext().getGeneratedFilesRelativePaths(generatedRoot) .stream() .map(path -> PathUtil.toSystemIndependentName(path)) .collect(Collectors.toSet()); generatedFiles.put(relativePath(generatedRoot), generatedFilesRelativePaths); }); }