protected boolean confirmPaste(String validString) {

			// create a truncated version of the string to show in the dialog
			String partialText = validString.length() < 40 ? validString
					: validString.substring(0, 40) + " ...";
			int result = OptionDialog.showYesNoDialog(null, "Paste String Into Program?",
				"Are you sure you want to paste the string \"" + partialText +
					"\"\n into the program's memory?");

			return result != OptionDialog.NO_OPTION;
		}
Create a Transferable from the given text.

@param text text used to create a Transferable
@return a Transferable
Ghidra/Features/Base/src/main/java/ghidra/app/util/ByteCopier.java