private static Pointer getPointer(Program program, DataType baseType, int ptrSize) {
		DataTypeManager dtMgr = program.getDataTypeManager();
		if (program.getDefaultPointerSize() == ptrSize) {
			return dtMgr.getPointer(baseType);
		}
		return dtMgr.getPointer(baseType, ptrSize);
	}
Determine the appropriate data type for an automatic parameter
@param function function whose auto param datatype is to be determined
@param returnDataType function's formal return datatype
@param storage variable storage for an auto-parameter (isAutoStorage should be true)
@return auto-parameter data type
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableUtilities.java