@Override
		public boolean applyTo(Program p, TaskMonitor monitor) {
			AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(p);
			try {
				return mgr.scheduleWorker(worker, null, analyzeChanges, TaskMonitor.DUMMY);
			}
			catch (Exception e) {
				error = e;
			}
			finally {
				synchronized (this) {
					isFinished = true;
					notifyAll();
				}
			}
			return false;
		}
Test attempt to run an AnalysisWorker from swing thread
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java