private static int getRangeShift(int range, int number) {
    return switch (number) {
      case 0 -> range;
      case 1 -> range * 2;
      case 2 -> range * 4;
      default -> -1;
    };
  }
private static int getRangeShift(int range, int number)