private Equate findEquate(Scalar scalar, List<Equate> equates) {
		for (Equate equate : equates) {
			if (equate.getValue() == scalar.getSignedValue() ||
				equate.getValue() == scalar.getValue()) {
				return equate;
			}
		}
		return null;
	}
Search list of equates for scalar value match.

@param scalar
@param equates list of equates
@return equate which matches scalar value or null if not found.
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java