@HintManager.PositionFlags
  private static short toShort(Position position) {
    return switch (position) {
      case above -> HintManager.ABOVE;
      case atLeft -> HintManager.LEFT;
      case atRight -> HintManager.RIGHT;
      default -> HintManager.UNDER;
    };
  }
@HintManager.PositionFlags
  private static short toShort(Position position)