@Override
	public Variable getVariableContaining(int offset) {
		function.manager.lock.acquire();
		try {
			checkIsValid();
			Object key = Integer.valueOf(offset);
			int index = Arrays.binarySearch(variables, key, StackVariableComparator.get());
			if (index >= 0) {
				return variables[index];
			}
			index = -index - 1;
			index = index - 1;
			if (index < 0) {
				return null;
			}
			Variable var = variables[index];
			Varnode stackVarnode = var.getLastStorageVarnode();
			int stackOffset = (int) stackVarnode.getOffset();
			if ((stackOffset + stackVarnode.getSize()) > offset) {
				return var;
			}
			return null;
		}
		finally {
			function.manager.lock.release();
		}
	}
//	 * @see ghidra.program.model.listing.StackFrame#setParameterOffset(int)
//
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionStackFrame.java