@Override
  public @NotNull Point logicalPositionToXY(@NotNull LogicalPosition pos) {
    return ReadAction.compute(() -> {
      VisualPosition visible = logicalToVisualPosition(pos);
      return visualPositionToXY(visible);
    });
  }
@Override
  public @NotNull Point logicalPositionToXY(@NotNull LogicalPosition pos)