public static boolean isThisParameter(HighVariable var, Function function) {
		if (var instanceof HighParam) {
			int slot = ((HighParam) var).getSlot();
			Parameter parameter = function.getParameter(slot);
			if ((parameter != null) &&
				(parameter.getAutoParameterType() == AutoParameterType.THIS)) {
				return true;
			}
		}
		return false;
	}
Test specified variable to see if it corresponds to the auto {@code this} parameter
of the specified {@link Function}
@param var decompiler {@link HighVariable variable}
@param function decompiled function
@return true if {@code var} corresponds to existing auto {@code this} parameter, else false
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerUtils.java