private void saveCodeUnitReplaceOption(Options options, ProgramMergeFilter defaultApplyFilter,
			int setting) {
		int filter =
			(defaultApplyFilter.getFilter(ProgramMergeFilter.INSTRUCTIONS) >= defaultApplyFilter
					.getFilter(ProgramMergeFilter.DATA)) ? ProgramMergeFilter.INSTRUCTIONS
							: ProgramMergeFilter.DATA;
		REPLACE_CHOICE defaultSetting = REPLACE_CHOICE.REPLACE;
		REPLACE_CHOICE optionSetting = options.getEnum(getOptionName(setting), defaultSetting);
		REPLACE_CHOICE diffSetting = convertTypeToReplaceEnum(defaultApplyFilter, filter);
		if (!diffSetting.equals(optionSetting)) {
			options.setEnum(getOptionName(setting), diffSetting);
		}
	}
Saves the indicated merge filter as the default apply settings.
@param defaultApplyFilter merge filter indicating default apply settings.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/DiffApplySettingsOptionManager.java