with Object Declaration
fun <T : KoDeclarationCastProvider> List<T>.withObjectDeclaration(predicate: (KoObjectDeclaration) -> Boolean? = null): List<T>
List containing declarations with the specified object declaration.
Return
A list containing declarations with the specified object declaration.
Parameters
predicate
The predicate function to determine if a object declaration satisfies a condition.