public void putPreferenceState(String key, PreferenceState state) {
		if (key == null) {
			throw new IllegalArgumentException("Key is null!");
		}

		preferenceStateMap.put(key, () -> state);
	}
Adds a PreferenceState object to this window manager instance that is bound to the given key.
When the state of the tool using this window manager is saved, then the mapped preferences
will also be saved.

@param key The key with which to store the preferences.
@param state The state object to store.
@see #getPreferenceState(String)
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java