boolean (RangeHighlighterEx highlighterEx) { int layer = highlighterEx.getLayer(); if (layer > this.layer && highlighterEx.getAffectedAreaStartOffset() < bottomVisualLineStartOffset && highlighterEx.getAffectedAreaEndOffset() > bottomVisualLineStartOffset - (highlighterEx.getTargetArea() == HighlighterTargetArea.EXACT_RANGE ? 0 : 1)) { TextAttributes attributes = highlighterEx.getTextAttributes(myEditor.getColorsScheme()); Color backgroundColor = attributes == null ? null : attributes.getBackgroundColor(); if (backgroundColor != null) { this.layer = layer; this.backgroundColor = backgroundColor; } } return true; }