void () { configureByText(JavaFileType.INSTANCE, """ class S { int f() { return asfsdfsdfsd<caret>; }}"""); HighlightInfo error = assertOneElement(highlightErrors()); assertSame(HighlightInfoType.WRONG_REF, error.type); Document document = getDocument(getFile()); type("xxx"); List<HighlightInfo> infos = DaemonCodeAnalyzerImpl.getHighlights(document, HighlightInfoType.SYMBOL_TYPE_SEVERITY, getProject()); for (HighlightInfo info : infos) { assertNotSame(HighlightInfoType.WRONG_REF, info.type); } HighlightInfo error2 = assertOneElement(highlightErrors()); assertSame(HighlightInfoType.WRONG_REF, error2.type); }