public void setType(DemangledFunction type, Demangled labelList) {
		setReturnType(type.getReturnType());
		List<DemangledParameter> params = type.getParameters();
		for (int i = 0; i < params.size(); i++) {
			DemangledParameter param = params.get(i);
			if (labelList instanceof DemangledList list && i < list.size() &&
				list.get(i) instanceof DemangledLabel label) {
				param.setLabel(label.getName());
			}
			addParameter(param);
		}
	}
Creates a new Swift function

@param mangled The mangled string
@param originalDemangled The natively demangled string
@param name The function name
@param namespace The function namespace (could be null)
@param callingConvention The function calling convention (could be null)
Ghidra/Features/SwiftDemangler/src/main/java/ghidra/app/util/demangler/swift/datatypes/SwiftFunction.java