public static String showInputChoiceDialog(Component parent, String title, String label,
			String[] selectableValues, String initialValue, int messageType) {

		return Swing.runNow(() -> {

			Icon icon = getIconForMessageType(messageType);

			InputWithChoicesDialog dialog =
				new InputWithChoicesDialog(title, label, selectableValues, initialValue, icon);
			DockingWindowManager.showDialog(parent, dialog);

			if (dialog.isCanceled()) {
				return null;
			}
			return dialog.getValue();
		});
	}
Displays a dialog for the user to enter a string value by either typing it or
selecting from a list of possible strings.

@param parent the component to parent this dialog to
@param title the title to display on the input dialog
@param label the label to display in front of the combo box
@param selectableValues an array of string to choose from
@param initialValue an optional value to set the combo box to, can be null
in which the combo box will have the first item from the selectable values.
@param messageType used to specify a default icon, can be ERROR_MESSAGE,
    INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE)
@return the string entered or chosen OR null if the dialog was canceled.
Ghidra/Framework/Docking/src/main/java/docking/widgets/OptionDialog.java