void () { configFile(); ShShellcheckInspection inspectionBefore = ShShellcheckInspection.findShShellcheckInspection(myFixture.getFile()); assertEmpty(inspectionBefore.getDisabledInspections()); applyIntentions(ShDisableInspectionIntention.class); checkResult(); ShShellcheckInspection inspectionAfter = ShShellcheckInspection.findShShellcheckInspection(myFixture.getFile()); assertNotEmpty(inspectionAfter.getDisabledInspections()); assertSameElements(inspectionAfter.getDisabledInspections(), Arrays.asList("SC2034", "SC2046")); }