private void completed() {
		if (plugin.isDisposed()) {
			// the tool was closed while this task was running
			return;
		}

		if (plugin.getCurrentProgram() == null || plugin.getSecondProgram() == null) {
			// the program was closed while this task was running
			return;
		}

		SystemUtilities.runSwingLater(() -> {
			diffApplySettingsProvider = plugin.getDiffApplySettingsProvider();
			diffApplySettingsProvider.configure(applyFilter);
			plugin.adjustDiffDisplay();
		});

		plugin.setTaskInProgress(false);
	}
This is the method TaskMonitor called to do the work.

@param monitor The TaskMonitor that will monitor the executing Task.  Will be null if
		  this task declared that it does not use a TaskMonitor
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/CreateDiffTask.java