private void setLockedAddresses(Address leftAddress, Address rightAddress) {
		if (leftAddress == null || rightAddress == null) {
			return;
		}
		lockLineAddresses = new Duo<>(leftAddress, rightAddress);
		AddressIndexMap leftMap = displays.get(LEFT).getListingPanel().getAddressIndexMap();
		AddressIndexMap rightMap = displays.get(RIGHT).getListingPanel().getAddressIndexMap();

		BigInteger leftIndex = leftMap.getIndex(leftAddress);
		BigInteger rightIndex = rightMap.getIndex(rightAddress);
		viewCoordinator.lockLines(leftIndex, rightIndex);
	}
Sets the left and right addresses that should currently be locked together for
synchronized scrolling.

@param leftAddress the address in the left listing.
@param rightAddress the address in the right listing.
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/listing/ListingCoordinator.java