void setApplyFilter(ProgramMergeFilter filter) {
		applyFilter = new ProgramMergeFilter(filter);
		applyProgramContext = applyFilter.getFilter(ProgramMergeFilter.PROGRAM_CONTEXT);
		applyBytes = applyFilter.getFilter(ProgramMergeFilter.BYTES);
		applyCodeUnits = Math.max(applyFilter.getFilter(ProgramMergeFilter.INSTRUCTIONS),
			applyFilter.getFilter(ProgramMergeFilter.DATA));
		applyFilter.setFilter(ProgramMergeFilter.CODE_UNITS, applyCodeUnits);
		applyReferences = applyFilter.getFilter(ProgramMergeFilter.REFERENCES);
		applyPlateComments = applyFilter.getFilter(ProgramMergeFilter.PLATE_COMMENTS);
		applyPreComments = applyFilter.getFilter(ProgramMergeFilter.PRE_COMMENTS);
		applyEolComments = applyFilter.getFilter(ProgramMergeFilter.EOL_COMMENTS);
		applyRepeatableComments = applyFilter.getFilter(ProgramMergeFilter.REPEATABLE_COMMENTS);
		applyPostComments = applyFilter.getFilter(ProgramMergeFilter.POST_COMMENTS);
		applySymbols = applyFilter.getFilter(ProgramMergeFilter.SYMBOLS);
		applyBookmarks = applyFilter.getFilter(ProgramMergeFilter.BOOKMARKS);
		applyProperties = applyFilter.getFilter(ProgramMergeFilter.PROPERTIES);
		applyFunctions = applyFilter.getFilter(ProgramMergeFilter.FUNCTIONS);
		applyFunctionTags = applyFilter.getFilter(ProgramMergeFilter.FUNCTION_TAGS);
		replacePrimary = applyFilter.getFilter(ProgramMergeFilter.PRIMARY_SYMBOL);
		applySourceMap = applyFilter.getFilter(ProgramMergeFilter.SOURCE_MAP);

		adjustApplyFilter();
	}
Sets the diff tool merge filter settings for applying differences.
@param filter the new apply Filter settings.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/DiffApplySettingsProvider.java