void (@NotNull Class<? extends LocalInspectionTool> inspectionClass, String fileName) { myFixture.copyDirectoryToProject("pyi/inspections/" + getTestName(true), ""); PsiDocumentManager.getInstance(myFixture.getProject()).commitAllDocuments(); final PsiFile file = myFixture.configureByFile(fileName); myFixture.enableInspections(inspectionClass); myFixture.checkHighlighting(true, false, true); assertProjectFilesNotParsed(file); assertSdkRootsNotParsed(file); }