private boolean isInCaretRow(boolean includeLineStart, boolean includeLineEnd) {
    return myStartOffset > myCaretData.caretRowStart() && myStartOffset < myCaretData.caretRowEnd() ||
           includeLineStart && myStartOffset == myCaretData.caretRowStart() || includeLineEnd && myStartOffset == myCaretData.caretRowEnd();
  }
private boolean isInCaretRow(boolean includeLineStart, boolean includeLineEnd)