void () { myFixture.copyDirectoryToProject(getTestDirectoryPath(), ""); final PsiFile currentFile = myFixture.configureFromTempProjectFile("a.py"); final PyUnresolvedReferencesInspection inspection = new PyUnresolvedReferencesInspection(); inspection.ignoredIdentifiers.add("mock.patch.*"); myFixture.enableInspections(inspection); myFixture.checkHighlighting(isWarning(), isInfo(), isWeakWarning()); assertProjectFilesNotParsed(currentFile); assertSdkRootsNotParsed(currentFile); }