private boolean isInstalled(Component c) {
		Component[] components = mainPanel.getComponents();
		for (Component component : components) {
			if (c == component) {
				return true;
			}
		}
		return false;
	}
Shows a dialog asking the user if they really, really want to cancel the task

@return true if the task should be cancelled
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskDialog.java