public DWARFRange getFlattenedRange() {
		if (isEmpty()) {
			return null;
		}
		if (ranges.size() == 1) {
			return getFirst();
		}

		List<DWARFRange> copy = new ArrayList<>(ranges);
		Collections.sort(copy);
		DWARFRange first = copy.get(0);
		DWARFRange last = copy.get(copy.size() - 1);
		return new DWARFRange(first.getFrom(), last.getTo());
	}
Reads a v5 {@link DWARFRangeList} from the .debug_rnglists stream.

@param reader stream positioned to the start of a .debug_rnglists range list
@param cu the compUnit referring to this range
@return new {@link DWARFRangeList}, never null
@throws IOException if error reading
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFRangeList.java