void (boolean checkInfos, boolean strictComments) { String name = getTestName(false); TryWithIdenticalCatchesInspection inspection = new TryWithIdenticalCatchesInspection(); inspection.ignoreBlocksWithDifferentComments = strictComments; myFixture.enableInspections(inspection); myFixture.configureByFile(PATH + name + ".java"); myFixture.checkHighlighting(true, checkInfos, false); }