public static void addTrackedTask(Task task, TaskMonitor monitor) {
		if (!SystemUtilities.isInTestingMode()) {
			return;
		}

		if (runningTasks.containsKey(task)) {
			return;
		}

		runningTasks.put(task, monitor);
		for (TrackedTaskListener listener : listeners) {
			listener.taskAdded(task);
		}
	}
Adds a Task to the list of tasks that have not yet finished running.  
<P>
Note: it is safe to add the same task more than once, as it will not be repeatedly 
tracked.

@param task The task to watch
@param monitor the task monitor for the given task
Ghidra/Framework/Gui/src/main/java/ghidra/util/TaskUtilities.java