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