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