private boolean markupScalarWithReferencedRegisterVariable(Scalar scalarToReplace,
			int scalarIndex, Reference primaryReference, Variable referencedVariable,
			List<Object> representationList) {
		if (options.doRegVariableMarkup) {
			Object variableRepresentation = getVariableReferenceRepresentation(primaryReference,
				referencedVariable, scalarToReplace);
			representationList.set(scalarIndex, variableRepresentation);
			return true;
		}
		return false;
	}
Markup scalar with register variable

@param scalarToReplace
@param scalarIndex index of scalarToReplace within representationList
@param primaryReference primary reference
@param referencedVariable referenced register variable (required)
@param representationList
@return true if primaryRef was included in scalar mark-up
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java