docs: private boolean isCurrentLine(int rowStartOffset) {
      int caretPosition = component.getCaretPosition();
      Element root = component.getDocument().getDefaultRootElement();
  
      return root.getElementIndex(rowStartOffset) == root.getElementIndex(caretPosition);
    }