public void setAnalysisOptions(Program program, Map<String, String> analysisSettings) {

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

		StringBuffer errorBuffer = new StringBuffer();
		for (String analysisOptionName : analysisSettings.keySet()) {
			String returnString = setAnalysisOption(options, analysisOptionName,
				analysisSettings.get(analysisOptionName));

			if (returnString.length() > 0) {
				errorBuffer.append(returnString);
				errorBuffer.append("\n");
			}
		}

		if (errorBuffer.length() > 0) {
			if (isRunningHeadless()) {
				Msg.error(this, errorBuffer.toString());
			}
			else {
				MultiLineMessageDialog.showMessageDialog(null, "Analysis Options",
					"Ghidra encountered error(s) when attempting to set analysis options.",
					errorBuffer.toString(), MultiLineMessageDialog.WARNING_MESSAGE);
			}
		}
	}
Allows user to set analysis options by passing a mapping of analysis option to
desired value.  This method does the work of converting the option value to its
actual object type (if needed).

@param program	the program for which analysis options should be set
@param analysisSettings	a mapping from analysis options to desired new settings
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java