private boolean isProcessingDomainObject(DomainObject obj) {
		if (taskThread == null) {
			return false;
		}
		if (hasQueuedTasksForDomainObject(obj)) {
			// any queued task will process queued follow-on commands
			return true;
		}
		// NOTE: while current task may not have completed (not null) it may be
		// done processing queued commands
		return currentTask != null && !currentTask.isDoneQueueProcessing();
	}
Schedule the given background command when the current command completes.

@param cmd background command to be scheduled
@param obj domain object that supports undo/redo
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ToolTaskManager.java