void run() {

		BasicTaskMonitor internalMonitor = new BasicTaskMonitor();
		internalMonitor.setIndeterminate(!task.hasProgress());
		internalMonitor.setCancelEnabled(task.canCancel());
		WrappingTaskMonitor monitor = new WrappingTaskMonitor(internalMonitor);
		startTaskThread(monitor);
		showTaskDialog(monitor);
		waitForModalTask();
	}
Helper class to launch the given task in a background thread, showing a task dialog if
this task takes to long. See {@link TaskLauncher}.
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskRunner.java