void () { VirtualFile a = createFile("src1/A.java", "class A{}"); VirtualFile b = createFile("src2/B.java", "class B{}"); Module module = addModule("a", a.getParent()); make(module); assertModulesUpToDate(); assertOutput(module, fs().file("A.class")); PsiTestUtil.addSourceRoot(module, b.getParent()); make(module); assertOutput(module, fs().file("A.class").file("B.class")); PsiTestUtil.removeSourceRoot(module, b.getParent()); make(module); assertOutput(module, fs().file("A.class")); assertModulesUpToDate(); }