long (boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings, boolean ignoreExtraHighlighting) { if (editor == null) { throw new IllegalStateException("Fixture is not configured. Call something like configureByFile() or configureByText()"); } ExpectedHighlightingData data = new ExpectedHighlightingData( editor.getDocument(), checkWarnings, checkWeakWarnings, checkInfos, ignoreExtraHighlighting); data.init(); return collectAndCheckHighlighting(data); }