void (@NotNull String filename, @NotNull List<String> sourceRoots) { myFixture.copyDirectoryToProject(getTestDirectoryPath(), ""); final Module module = myFixture.getModule(); for (String root : sourceRoots) { PsiTestUtil.addSourceRoot(module, myFixture.findFileInTempDir(root)); } try { final PsiFile currentFile = myFixture.configureFromTempProjectFile(filename); myFixture.enableInspections(getInspectionClass()); myFixture.checkHighlighting(isWarning(), isInfo(), isWeakWarning()); assertProjectFilesNotParsed(currentFile); assertSdkRootsNotParsed(currentFile); } finally { for (String root : sourceRoots) { PsiTestUtil.removeSourceRoot(module, myFixture.findFileInTempDir(root)); } } }