@Override
  public int logicalPositionToOffset(@NotNull LogicalPosition pos) {
    return ReadAction.compute(() -> myView.logicalPositionToOffset(pos));
  }
@Override
  public int logicalPositionToOffset(@NotNull LogicalPosition pos)