private static int getStackSize(int type, int arrayDim) {
    if (arrayDim > 0) {
      return 1;
    }

    return switch (type) {
      case CodeConstants.TYPE_DOUBLE, CodeConstants.TYPE_LONG -> 2;
      case CodeConstants.TYPE_VOID, CodeConstants.TYPE_GROUP2EMPTY -> 0;
      default -> 1;
    };
  }
private static int getStackSize(int type, int arrayDim)