void () { runWithAdditionalFileInLibDir( "sys.py", "path = 10", (__) -> { myFixture.configureByFile(getTestName(true) + ".py"); myFixture.enableInspections(PyUnresolvedReferencesInspection.class); assertNotNull(myFixture.findSingleIntention("Import 'sys' locally")); } ); }