@Override
	public Parameter[] getParameters() {
		function.manager.lock.acquire();
		try {
			checkIsValid();
			ArrayList<Parameter> list = new ArrayList<Parameter>();
			for (Variable variable : variables) {
				if (variable instanceof Parameter) {
					list.add((Parameter) variable);
				}
			}
			Parameter[] vars = new Parameter[list.size()];
			return list.toArray(vars);
		}
		finally {
			function.manager.lock.release();
		}
	}
Construct a function stack frame.
@param function
@param variables
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionStackFrame.java