with External Declaration
fun <T : KoDeclarationCastProvider> List<T>.withExternalDeclaration(predicate: (KoExternalDeclaration) -> Boolean? = null): List<T>
List containing declarations with the specified external declaration.
Return
A list containing declarations with the specified external declaration.
Parameters
predicate
The predicate function to determine if an external declaration satisfies a condition.