void (Collection<? extends HighlightInfo> infos, String text, String failMessage, @Nullable String filePath) { String actual = composeText(myHighlightingTypes, infos, text); if (filePath != null && !myText.equals(actual)) { // uncomment to overwrite, don't forget to revert on commit! //VfsTestUtil.overwriteTestData(filePath, actual); //return; throw new FileComparisonFailure(failMessage, myText, actual, filePath); } assertEquals(failMessage + "\n", myText, actual); fail(failMessage); }