public SaveState getState() {
		Project project = AppInfo.getActiveProject();
		if (project == null) {
			return null;
		}
		final SaveState state;
		SaveState existingState = stateKey != null ? project.getSaveableData(stateKey) : null;
		if (existingState != null) {
			state = existingState;
		}
		else if (stateKey != null) {
			state = new SaveState();
			project.setSaveableData(stateKey, state);
		}
		else {
			state = null;
		}
		return state;
	}
{@return the current project state associated with this option (could be null)}
Ghidra/Features/Base/src/main/java/ghidra/app/util/Option.java