public DataType getCellEditorValueAsDataType() {
		try {
			if (validateUserSelection()) {
				return selectionField.getSelectedValue();
			}
		}
		catch (InvalidDataTypeException e) {
			// just return null
		}
		return null;
	}
Sets whether this editor should consumer Enter key presses
@see DropDownSelectionTextField#setConsumeEnterKeyPress(boolean)

@param consume true to consume
Ghidra/Features/Base/src/main/java/ghidra/app/util/datatype/DataTypeSelectionEditor.java