@Override
    public int getIndexAtPoint(Point point) {
      LogicalPosition logicalPosition = editor.xyToLogicalPosition(point);
      return editor.logicalPositionToOffset(logicalPosition);
    }
@Override
    public int getIndexAtPoint(Point point)