@Override
		public synchronized void cancelled() {
			// Initial state: while this command is queued we must listen to the worker's task monitor
			// so that we can kill ourself
			// Running state: while the command is running we are listening to the analysis task
			// monitor and must convey it being cancelled to the worker's monitor.
			if (workerMonitor.isCancelEnabled()) {
				doNotRun();
			}
		}
<code>AnalysisWorkerCommand</code> facilitates the controlled callback to an AnalysisWorker.
In a Headed environment a modal task dialog will be used to block user input if the
worker was scheduled with analyzeChanges==false
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java