PersistentRangeHighlighterImpl (@NotNull MarkupModelImpl model, int offset, int layer, @NotNull HighlighterTargetArea target, @Nullable TextAttributesKey textAttributesKey, boolean normalizeStartOffset) { int line = model.getDocument().getLineNumber(offset); int startOffset = normalizeStartOffset ? model.getDocument().getLineStartOffset(line) : offset; int endOffset = model.getDocument().getLineEndOffset(line); return new PersistentRangeHighlighterImpl(model, startOffset, endOffset, layer, target, textAttributesKey); }