private PrototypeModel addPrototypeModel(List<PrototypeModel> modelList, XmlPullParser parser)
			throws XmlParseException {
		PrototypeModel model;
		if (parser.peek().getName().equals("resolveprototype")) {
			PrototypeModelMerged mergemodel = new PrototypeModelMerged();
			mergemodel.restoreXml(parser, modelList);
			model = mergemodel;
		}
		else {
			model = new PrototypeModel();
			model.restoreXml(parser, this);
		}
		setDefaultReturnAddressIfNeeded(model);
		modelList.add(model);
		return model;
	}
Clone the named PrototypeModel, attaching it to another name.
@param aliasName is the new name
@param parentName is the name of the PrototypeModel to clone
@param modelList is the container
@throws XmlParseException if the parent model cannot be established
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/BasicCompilerSpec.java