@Override
	public void doRun(TaskMonitor monitor) {
		if (programManager == null) {
			Msg.error(this, "Program Manager Service not found!");
			return;
		}
		try {
			applyResults(monitor);
			releaseOpenedPrograms();
		}
		catch (CancelledException e) {
			// user cancelled
		}

		Swing.runLater(() -> displayTaskResults(monitor.isCancelled()));
	}
Generic task for applying information from a function match to the queried function
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/results/apply/AbstractBSimApplyTask.java