void saveFavorites(SaveState saveState) {
		List<DataType> favoritesList = builtInDataTypesManager.getFavorites();
		String[] names = new String[favoritesList.size()];
		for (int i = 0; i < names.length; i++) {
			DataType dataType = favoritesList.get(i);
			names[i] = dataType.getPathName();
		}

		saveState.putStrings(FAVORITES, names);
	}
Determine if we can remember the specified project archive using a simple project path
(e.g., we can't remember specific versions).
@param pa project archive
@param activeProjectOnly if true pa must be contained within the
active project to be remembered.
@return return project path which can be remembered or null
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DataTypeManagerHandler.java