void () { myFixture.copyDirectoryToProject("objectBaseIsNotShownInAutoImportQuickfix", ""); myFixture.configureByFile("main.py"); myFixture.enableInspections(PyUnresolvedReferencesInspection.class); final IntentionAction intention = myFixture.findSingleIntention("Import"); assertNotNull(intention); assertEquals("Import 'module.MyOldStyleClass'", intention.getText()); }