private void copyOptionsTo(Program program) {

		// fetching the autoAnalysisManager for the  program here allows analyzers to register their
		// options in that program's db. 
		AutoAnalysisManager aam = AutoAnalysisManager.getAnalysisManager(program);

		Options destinationOptions = program.getOptions(Program.ANALYSIS_PROPERTIES);

		// copy the analyzer options (at the db level)
		for (String optionName : analysisOptions.getOptionNames()) {
			Object optionValue = analysisOptions.getObject(optionName, null);
			if (optionValue == null && !destinationOptions.isRegistered(optionName)) {
				Msg.warn(this, "Unable to copy null option %s to program %s".formatted(optionName,
					program.getName()));
			}
			else {
				destinationOptions.putObject(optionName, optionValue);
			}
		}

		// update the analyzers on the program with new option values
		aam.initializeOptions(analysisOptions);
	}
Updates programs with the latest option settings.
<p>
Details: This loops over every analyzer name in this panel and for
each, updates the associated enablement for all programs being
analyzed.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AnalysisPanel.java