void () { runWithAdditionalClassEntryInSdkRoots(getTestDirectoryPath() + "/site-packages", () -> { runWithAdditionalClassEntryInSdkRoots(getTestDirectoryPath() + "/python_stubs", () -> { myFixture.configureByFile(getTestDirectoryPath() + "/a.py"); final PyUnresolvedReferencesInspection inspection = new PyUnresolvedReferencesInspection(); inspection.ignoredIdentifiers.add("pkg.*"); myFixture.enableInspections(inspection); myFixture.checkHighlighting(isWarning(), isInfo(), isWeakWarning()); assertSdkRootsNotParsed(myFixture.getFile()); assertProjectFilesNotParsed(myFixture.getFile()); }); }); }