RangeHighlighter (int startOffset, int endOffset, int layer, Color borderColor) { return addRangeHighlighter(startOffset, endOffset, layer, new TextAttributes(null, null, borderColor, EffectType.BOXED, Font.PLAIN)); }