public static List<DemangledParameter> extractParameters(Demangled demangled) {
		List<DemangledParameter> params = new ArrayList<>();
		if (demangled instanceof DemangledVariable variable) {
			demangled = variable.getDataType();
		}
		if (demangled instanceof DemangledList list) {
			for (Demangled d : list) {
				if (d instanceof DemangledDataType type) {
					params.add(new DemangledParameter(type));
				}
			}
		}
		else if (demangled instanceof DemangledDataType type) {
			params.add(new DemangledParameter(type));
		}
		return params;
	}
Creates a {@link List} of {@link DemangledParameter parameters} found within the given
{@link Demangled} object
  
@param demangled A {@link Demangled} object
@return A {@link List} of {@link DemangledParameter parameters} found within the given
  {@link Demangled} object
Ghidra/Features/SwiftDemangler/src/main/java/ghidra/app/util/demangler/swift/datatypes/SwiftDataTypeUtils.java