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