extendRangeByLines
fun extendRangeByLines(content: CharSequence, range: DocumentProvider.DocumentRange, linesBefore: Int = 2, linesAfter: Int = 2): DocumentProvider.DocumentRange(source)
Expands a DocumentRange by a number of full lines before and after. Returns a new range clamped to the content bounds.