void (String intentionName, final int fixesNum) { final String s = getTestName(false); myFixture.configureByFile(s + ".html"); Collection<HighlightInfo> highlightInfos = myFixture.doHighlighting(); assertEquals(fixesNum, highlightInfos.size()); IntentionAction intention = myFixture.findSingleIntention(intentionName); myFixture.launchAction(intention); assertEquals(0, myFixture.doHighlighting().stream().filter(el -> el.type != HighlightInfoType.INFORMATION).count()); }