@Override
  protected int coordinatesToOffset(@NotNull Coordinates coordinates) {
    LogicalPosition position = new LogicalPosition(coordinates.row(), coordinates.column());
    return myEditor.logicalPositionToOffset(position);
  }
@Override
  protected int coordinatesToOffset(@NotNull Coordinates coordinates)