public Register getRegister(Varnode node) {
		if (node == null) {
			return null;
		}

		return language.getRegister(node.getAddress(), node.getSize());
	}
Translate the Varnode into a register if possible

@param node
           varnode to translate
@return Register or null if node is not a register
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/VarnodeTranslator.java