HighlightInfo (Color color, @NotNull TextRange range) { TextAttributes attributes = new TextAttributes(null, color, null, null, Font.PLAIN); return HighlightInfo.newHighlightInfo(TYPE).range(range).textAttributes(attributes) .severity(HighlightInfoType.ELEMENT_UNDER_CARET_SEVERITY).createUnconditionally(); }