@Override
  public int logicalPositionToOffset(final @NotNull LogicalPosition pos) {
    return getEditor().logicalPositionToOffset(pos);
  }
@Override
  public int logicalPositionToOffset(final @NotNull LogicalPosition pos)