public synchronized void clearTasks(DomainObject obj) {
		Iterator<BackgroundCommandTask<?>> iter = tasks.iterator();
		while (iter.hasNext()) {
			BackgroundCommandTask<?> task = iter.next();
			if (task.getDomainObject() == obj) {
				iter.remove();
			}
		}
	}
Clear all tasks associated with specified domain object.

@param obj domain object
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ToolTaskManager.java