void () { myFixture.enableInspections(PyUnresolvedReferencesInspection.class); myFixture.copyDirectoryToProject("importFromModuleStar", ""); myFixture.configureFromTempProjectFile("source.py"); myFixture.checkHighlighting(true, false, false); final IntentionAction intentionAction = myFixture.findSingleIntention("Import 'target.xyzzy'"); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); myFixture.checkResultByFile("importFromModuleStar/source_after.py"); }