public void merge(FieldRange newRange) {
		if (!canMerge(newRange)) {
			throw new AssertException("Attempted to merge a range that can't be merged!");
		}
		if (start.compareTo(newRange.start) > 0) {
			start = newRange.start;
		}
		if (end.compareTo(newRange.end) < 0) {
			end = newRange.end;
		}
	}
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