@Override
	public VariableStorage buildStorage(Varnode vn) throws InvalidInputException {
		Address addr = vn.getAddress();
		if (addr.getAddressSpace().getType() == AddressSpace.TYPE_VARIABLE) {
			VariableStorage store = findJoinStorage(addr.getOffset());
			if (store == null) {
				throw new InvalidInputException(
					"Missing description of pieces for a varnode in the join address space");
			}
			return store;
		}
		return new VariableStorage(datatypeManager.getProgram(), vn);
	}
Varnodes and PcodeOps in a coherent graph structure
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PcodeSyntaxTree.java