public static <T> void putState(SaveState state, Class<T> type, String name, T value) {
			ConfigFieldCodec<T> codec = getCodecByType(type);
			if (codec == null) {
				throw new IllegalArgumentException("No codec for type " + type);
			}
			codec.write(state, name, value);
		}
Put an object into a {@link SaveState} using a known codec

<p>
This seems like something that should be in SaveState itself, but the object value must
be one of the supported types.

@param <T> the type of the value
@param state the state to write into
@param type the type of the value
@param name the name of the name-value pair
@param value the value of the name-value pair
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/framework/plugintool/AutoConfigState.java