void () { myFixture.enableInspections(new CStyleArrayDeclarationInspection()); myFixture.testHighlighting(getTestName(false) + ".java"); String inspectionName = InspectionGadgetsBundle.message("c.style.array.declaration.display.name"); IntentionAction intention = myFixture.findSingleIntention(InspectionsBundle.message("fix.all.inspection.problems.in.file", inspectionName)); myFixture.checkPreviewAndLaunchAction(intention); myFixture.checkResultByFile(getTestName(false) + ".after.java"); }