public synchronized void clearQueuedCommands(DomainObject obj) {
		PriorityQueue<BackgroundCommand<?>> queue = queuedCommandsMap.get(obj);
		if (queue == null) {
			return;
		}
		while (!queue.isEmpty()) {
			BackgroundCommand<?> cmd = queue.removeFirst();
			cmd.dispose();
		}
		queuedCommandsMap.remove(obj);
	}
Clear the queue of scheduled commands.
@param obj domain object
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ToolTaskManager.java