public void storeParametersToDatabase(boolean storeDataTypes, SourceType srctype) {
		try {
			List<Variable> params = new ArrayList<>();
			for (ParamMeasure pm : inputlist) {
				Varnode vn = pm.getVarnode();
				DataType dataType;
				//Msg.debug(this, "function(" + func.getName() + ")--param size: " + vn.getSize() +
				//	"--type before store: " + pm.getDataType().getName());
				if (storeDataTypes) {
					dataType = pm.getDataType();
				}
				else {
					dataType = Undefined.getUndefinedDataType(vn.getSize());
				}
				Variable v = new ParameterImpl(null, dataType, buildStorage(vn), func.getProgram());
				//Msg.debug(this, "function(" + func.getName() + ")--param: " + v.toString() +
				//	" -- type: " + dataType.getName());
				params.add(v);
			}

			func.updateFunction(modelname, null, params,
				FunctionUpdateType.DYNAMIC_STORAGE_ALL_PARAMS, true, srctype);
			if (!paramStorageMatches(func, params)) {
				// try again if dynamic storage assignment does not match decompiler's
				// force into custom storage mode
				func.updateFunction(modelname, null, params, FunctionUpdateType.CUSTOM_STORAGE,
					true, srctype);
			}

		}
		catch (InvalidInputException e) {
			Msg.error(this, e.getMessage());
		}
		catch (DuplicateNameException e) {
			Msg.error(this, e.getMessage());
		}
	}
Update any parameters for this Function from parameters defined in this map.
  Originally from LocalSymbolMap, but being modified.

@param storeDataTypes is true if data-types are being stored
@param srctype function signature source
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/HighParamID.java