void (@NotNull Class<? extends LocalInspectionTool> inspectionClass, @NotNull String hint) { final String testFileName = "quickfix/" + getTestName(false); myFixture.enableInspections(inspectionClass); myFixture.configureByFile(testFileName + ".json"); myFixture.checkHighlighting(true, false, false); final IntentionAction intentionAction = myFixture.getAvailableIntention(hint); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); myFixture.checkResultByFile(testFileName + "_after.json", true); }