@Override
	public Variable getVariableContaining(int offset) {
		synchronized (function) {
			loadStackVariables();
			Object key = Integer.valueOf(offset);
			int index = Collections.binarySearch(variables, key, StackVariableComparator.get());
			if (index >= 0) {
				return variables.get(index);
			}
			index = -index - 1;
			index = index - 1;
			if (index < 0) {
				return null;
			}
			Variable var = variables.get(index);
			int stackOffset = var.getStackOffset();
			if ((stackOffset + var.getLength()) > offset) {
				return var;
			}
			return null;
		}
	}
Get the stack variable containing offset.  This may fall in
the middle of a defined variable.

@param offset offset of on stack to get variable.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldStackFrameDB.java