private void initializeParametersAndReturn() {

		returnInfo = new ParamInfo(this, function.getReturn());

		// check for void storage correction
		if (VoidDataType.isVoidDataType(returnInfo.getDataType()) &&
			returnInfo.getStorage() != VariableStorage.VOID_STORAGE) {
			returnInfo.setStorage(VariableStorage.VOID_STORAGE);
		}

		autoParamCount = 0;
		Parameter[] params = function.getParameters();
		for (Parameter parameter : params) {
			if (parameter.isAutoParameter()) {
				++autoParamCount;
			}
			parameters.add(new ParamInfo(this, parameter));
		}

		fixupOrdinals();
	}
Construct a duplicate instance from another {@link FunctionDataView} instance.
@param otherFunctionData function data
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionDataView.java