protected <T> T askChoice(String title, String message, List<T> choices, T defaultValue) {
		AskDialog<T> dialog =
			new AskDialog<>(null, title, message, AskDialog.STRING, choices, defaultValue);
		if (dialog.isCanceled()) {
			return null;
		}

		T s = dialog.getChoiceValue();
		return s;
	}
Method to ask a user to select from an array of choices (copied from GhidraScript).
@param title popup window title
@param message message to display during choice
@param choices array of choices for the users
@param defaultValue the default value to select
@return the user's choice, or null
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/plugin/FidDebugPlugin.java