void () { ModuleRootModificationUtil.addDependency(myJava8Module, myJava3Module); final String testName = getTestName(false); myFixture.copyFileToProject("java3/p/" + testName + ".java"); myFixture.copyFileToProject("java8/p/" + testName + ".java"); myFixture.configureByFiles("java8/p/" + testName + ".java", "java3/p/" + testName + ".java"); myFixture.checkHighlighting(); }