docs: @Nullable
    private Type getPrimitiveOrVoidType(String typeStr) {
      switch (typeStr) {
        case "byte":
          return getSymtab().byteType;
        case "short":
          return getSymtab().shortType;
        case "int":
          return getSymtab().intType;
        case "long":
          return getSymtab().longType;
        case "float":
          return getSymtab().floatType;
        case "double":
          return getSymtab().doubleType;
        case "boolean":
          return getSymtab().booleanType;
        case "char":
          return getSymtab().charType;
        case "void":
          return getSymtab().voidType;
        default:
          return null;
      }
    }