@RequiresReadLock
  public int logicalPositionToOffset(@NotNull LogicalPosition pos) {
    return myMapper.logicalPositionToOffset(pos);
  }
@RequiresReadLock
  public int logicalPositionToOffset(@NotNull LogicalPosition pos)