public void storeReturnToDatabase(boolean storeDataTypes, SourceType srctype) {
		try {
			//TODO: Currently, only storing one output, so looking for the best to report.  When possible, change this to report all
			int best_index = 0;
			if (getNumOutputs() > 1) {
				for (int i = 1; i < getNumOutputs(); i++) {
					if (getOutput(i).getRank() < getOutput(best_index).getRank()) {//TODO: create mirror of ranks on high side (instead of using numbers?)
						best_index = i;
					}
				}
			}
			if (getNumOutputs() != 0) {
				ParamMeasure pm = getOutput(best_index);
				pm.getRank(); //TODO (maybe): this value is not used or stored on the java side at this point
				Varnode vn = pm.getVarnode();
				DataType dataType;
				if (storeDataTypes) {
					dataType = pm.getDataType();
				}
				else {
					dataType = Undefined.getUndefinedDataType(vn.getSize());
				}
				//Msg.debug(this, "func: " + func.getName() + " -- type: " + dataType.getName());
				if (!(dataType == null || dataType instanceof VoidDataType)) {
					func.setReturn(dataType, buildStorage(vn), SourceType.ANALYSIS);
				}
			}
		}
		catch (InvalidInputException e) {
			Msg.error(this, e.getMessage());
		}
	}
Update any parameters for this Function from parameters defined in this map.

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