public void commitFunction(Function function) {
		DecompileResults decompRes = decompInterface.decompileFunction(function,
			decompInterface.getOptions().getDefaultTimeout(), monitor);

		if (decompRes == null || decompRes.getHighFunction() == null ||
			decompRes.getHighFunction().getFunctionPrototype() == null) {
			Msg.debug(this, "Couldn't commit params - null high function");
			return;
		}

		try {
			HighFunctionDBUtil.commitParamsToDatabase(decompRes.getHighFunction(), true,
				ReturnCommitOption.COMMIT, SourceType.ANALYSIS);
		}
		catch (DuplicateNameException e) {
			Msg.debug(this, "Couldn't commit params " + e);
			return;
		}
		catch (InvalidInputException e) {
			Msg.debug(this, "Couldn't commit params " + e);
			return;
		}
	}
Method to get the decompiler version of the given function's return type (which is not always 
the same as the listing version)
@param function the given function
@return the decompiler version of the given function's return type (which is not always the 
same as the listing version)
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/DecompilerScriptUtils.java