static L priorityQueueToList(PriorityQueue q) { ret q == null ? null : sortedByComparator(asList(q), q.comparator()); }