void () { IdeaTestUtil.setModuleLanguageLevel(myJava7Module, LanguageLevel.JDK_1_7); ModuleRootModificationUtil.addDependency(myJava3Module, myJava7Module); final String name = getTestName(false); myFixture.copyFileToProject("java7/p/" + name + ".java"); myFixture.configureByFiles("java3/p/" + name + ".java"); myFixture.checkHighlighting(); }