@Override
	public synchronized boolean isCancelled() {
		return taskDialog != null ? taskDialog.isCancelled() : isCanceled;
	}
Display a modal task dialog associated with this locking task.
This method will not return until the task has completed and the
lock has been released.
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/LockingTaskMonitor.java