docs: public <T> Local<T> newLocal(TypeId<T> type) {
          if (localsInitialized) {
              throw new IllegalStateException("Cannot allocate locals after adding instructions");
          }
          Local<T> result = Local.get(this, type);
          locals.add(result);
          return result;
      }