public static boolean store() {
		if (filename == null) {
			throw new RuntimeException("Preferences filename has not been set!");
		}
		Msg.trace(Preferences.class, "Storing user preferences: " + filename);

		// make sure the preferences directory exists.
		File file = new File(filename);
		if (!file.exists()) {
			FileUtilities.mkdirs(file.getParentFile());
		}

		// Save properties to file
		BufferedOutputStream os = null;
		try {
			os = new BufferedOutputStream(new FileOutputStream(filename));
			properties.store(os, "User Preferences");
			os.close();
			return true;
		}
		catch (IOException e) {
			Msg.error(Preferences.class, "Failed to store user preferences: " + filename);
		}
		finally {
			if (os != null) {
				try {
					os.close();
				}
				catch (IOException e) {
					// we tried
				}
			}
		}
		return false;
	}
Store the preferences in a file for the current filename.
@return true if the file was written
@throws RuntimeException if the preferences filename was not set
Ghidra/Framework/Generic/src/main/java/ghidra/framework/preferences/Preferences.java