public static <T> T getState(SaveState state, Class<T> type, String name) {
			ConfigFieldCodec<T> codec = getCodecByType(type);
			if (codec == null) {
				throw new IllegalArgumentException("No codec for type " + type);
			}
			return codec.read(state, name, null);
		}
Get an object from a {@link SaveState} using a known codec

<p>
This seems like something that should be in SaveState itself.

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