void () { ModuleRootModificationUtil.addDependency(myJava8Module, myJava7Module); myFixture.copyFileToProject("java7/p/List7.java"); myFixture.configureByFiles("java8/p/" + getTestName(false) + ".java"); HighlightUsagesHandler.invoke(myFixture.getProject(), myFixture.getEditor(), myFixture.getFile()); final RangeHighlighter highlighter = assertOneElement(myFixture.getEditor().getMarkupModel().getAllHighlighters()); assertEquals(60, highlighter.getStartOffset()); assertEquals(66, highlighter.getEndOffset()); }