public DataType getDecompilerReturnType(Function function) {

		DecompileResults decompRes = decompInterface.decompileFunction(function,
			decompInterface.getOptions().getDefaultTimeout(), monitor);

		//If can't decompile, return null
		if (decompRes == null || decompRes.getHighFunction() == null ||
			decompRes.getHighFunction().getFunctionPrototype() == null) {
			return null;
		}

		return decompRes.getHighFunction().getFunctionPrototype().getReturnType();
	}
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