kevinmost
fun <K, V> Map<K?, V>.filterNotNullKeys(): Map<K, V> { return this .filterKeys { it != null } .mapKeys { it.key!! } }