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