void (final Class inspectionClass, final String hint) { final String testFileName = getTestName(true); myFixture.enableInspections(inspectionClass); myFixture.configureByFile(testFileName + ".py"); myFixture.checkHighlighting(true, false, false); final IntentionAction intentionAction = myFixture.findSingleIntention(hint); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); myFixture.checkResultByFile(testFileName + "_after.py", true); }