void () { VirtualFile file1 = createFile("main/src/A.java", "class A{}"); Module main = addModule("main", file1.getParent()); VirtualFile file2 = createFile("dep/src/B.java", "class B{}"); Module dep = addModule("dep", file2.getParent()); ModuleRootModificationUtil.addDependency(main, dep); makeWithDependencies(false, main); assertOutput(main, fs().file("A.class")); assertOutput(dep, fs().file("B.class")); }