public Iterator<Range> getRanges(boolean forward) {
		if (forward) {
			return set.iterator();
		}
		Iterator<Range> it = set.iterator();
		LinkedList<Range> ll = new LinkedList<>();
		while (it.hasNext()) {
			ll.addFirst(it.next());
		}
		return ll.iterator();
	}
Returns an iterator over all the ranges in this list that iterates in the direction
specified.
@param forward true indicates to iterate forward from minimum to maximum range; false
indicates backward iteration form maximum to minimum.
@return the iterator
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/SortedRangeList.java