docs: private static void doBox(CodeBuilder adapter, SoyRuntimeType type) {
      if (type.isKnownSanitizedContent()) {
        FieldRef.enumReference(
                ContentKind.valueOf(((SanitizedType) type.soyType()).getContentKind().name()))
            .accessStaticUnchecked(adapter);
        MethodRef.ORDAIN_AS_SAFE.invokeUnchecked(adapter);
      } else if (type.isKnownString()) {
        MethodRef.STRING_DATA_FOR_VALUE.invokeUnchecked(adapter);
      } else if (type.isKnownListOrUnionOfLists()) {
        MethodRef.LIST_IMPL_FOR_PROVIDER_LIST.invokeUnchecked(adapter);
      } else if (type.isKnownLegacyObjectMapOrUnionOfMaps()) {
        FieldRef.enumReference(RuntimeMapTypeTracker.Type.LEGACY_OBJECT_MAP_OR_RECORD)
            .putUnchecked(adapter);
        MethodRef.DICT_IMPL_FOR_PROVIDER_MAP.invokeUnchecked(adapter);
      } else if (type.isKnownMapOrUnionOfMaps()) {
        MethodRef.MAP_IMPL_FOR_PROVIDER_MAP.invokeUnchecked(adapter);
      } else if (type.isKnownProtoOrUnionOfProtos()) {
        MethodRef.SOY_PROTO_VALUE_CREATE.invokeUnchecked(adapter);
      } else {
        throw new IllegalStateException("Can't box soy expression of type " + type);
      }
    }