package org.jetbrains.dokka.utilities inline fun Iterable.associateWithNotNull(valueSelector: (K) -> V?): Map { @Suppress("UNCHECKED_CAST") return associateWith { valueSelector(it) }.filterValues { it != null } as Map }