private boolean promptToVerifyCancel() {
		boolean userSaysYes = OptionDialog.showYesNoDialog(getComponent(), "Cancel?",
			"Do you really want to cancel \"" + getTitle() + "\"?") == OptionDialog.OPTION_ONE;
		return userSaysYes;
	}
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