public boolean canMerge(FieldRange newRange) {
		if (compareTo(newRange) > 0) {
			return newRange.canMerge(this);
		}
		if (end.compareTo(newRange.start) < 0) {
			return false;
		}
		return true;
	}
checks if the given location is contained in the range.
@param loc the field location.
@return true if the field range contains the specified location.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/support/FieldRange.java