private void addTextToComment(String text) {
		String comment = commentField.getText().trim();
		if (comment.contains(text)) {
			return;
		}
		if (!comment.isBlank()) {
			comment += " ";
		}
		comment += text;
		commentField.setText(comment.trim());
	}
Sets the pending new datatype and updates the datatype text field to the name of that
datatype.
@param dataType the new pending datatype
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/EditDataFieldDialog.java