@Override
		public List<Entry<K, V>> toList() {
			List<Entry<K, V>> copy = new ArrayList<>(size());
			for (Entry<K, V> ent : this) {
				copy.add(ent);
			}
			return copy;
		}
A list view suitable for {@link ValueSortedMap#entrySet()} of
{@link RestrictedValueSortedMap}
Ghidra/Framework/Generic/src/main/java/ghidra/generic/util/datastruct/RestrictedValueSortedMap.java