@Override
	public void run(TaskMonitor monitor) {

		monitor.setMessage("Searching...");
		if (isCanceled) {
			monitor.cancel();
			return;
		}

		monitor.setMessage("Searching...");
		textSearcher.setMonitor(monitor);
		try {
			result = textSearcher.search();
		}
		catch (Exception e) {
			if (!(e instanceof DomainObjectException)) {
				Msg.showError(this, null, "Error", "Error searching", e);
			}
		}
	}
Constructor for SearchTask.
@param navigatable the navigatable
@param program the program
@param textSearcher existing search to use
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchtext/SearchTask.java