String cleanUpSignatureText(String text, FunctionSignature signature) {
		DataType returnType = signature.getReturnType();
		text = replaceDataTypeIfNeeded(text, returnType, REPLACEMENT_DT_NAME);
		text = replaceNameIfNeeded(text, signature.getName(), REPLACE_NAME);

		ParameterDefinition[] arguments = signature.getArguments();
		for (ParameterDefinition argument : arguments) {
			text = replaceDataTypeIfNeeded(text, argument.getDataType(),
				REPLACEMENT_DT_NAME + argument.getOrdinal());
			text =
				replaceNameIfNeeded(text, argument.getName(), REPLACE_NAME + argument.getOrdinal());
		}
		return text;
	}
Parse the given function signature text into a FunctionDefinitionDataType.

@param originalSignature the function signature before editing. This may be
                         null if the user is entering a new signature instead
                         of editing an existing one.
@param signatureText     the text to be parsed into a function signature.
@return the FunctionDefinitionDataType resulting from parsing.
@throws ParseException if the text could not be parsed.
@throws CancelledException if parse cancelled by user
Ghidra/Features/Base/src/main/java/ghidra/app/util/parser/FunctionSignatureParser.java