public static int getType(char c) {
    return switch (c) {
      case 'B' -> CodeConstants.TYPE_BYTE;
      case 'C' -> CodeConstants.TYPE_CHAR;
      case 'D' -> CodeConstants.TYPE_DOUBLE;
      case 'F' -> CodeConstants.TYPE_FLOAT;
      case 'I' -> CodeConstants.TYPE_INT;
      case 'J' -> CodeConstants.TYPE_LONG;
      case 'S' -> CodeConstants.TYPE_SHORT;
      case 'Z' -> CodeConstants.TYPE_BOOLEAN;
      case 'V' -> CodeConstants.TYPE_VOID;
      case 'G' -> CodeConstants.TYPE_GROUP2EMPTY;
      case 'N' -> CodeConstants.TYPE_NOTINITIALIZED;
      case 'A' -> CodeConstants.TYPE_ADDRESS;
      case 'X' -> CodeConstants.TYPE_BYTECHAR;
      case 'Y' -> CodeConstants.TYPE_SHORTCHAR;
      case 'U' -> CodeConstants.TYPE_UNKNOWN;
      default -> throw new IllegalArgumentException("Invalid type: " + c);
    };
  }
public static int getType(char c)