with Interface Or Object
fun <T : KoInterfaceAndObjectProvider> List<T>.withInterfaceOrObject(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): List<T>
List containing declarations that have at least one interface or object satisfying the provided predicate.
Return
A list containing declarations with at least one interface or object satisfying the predicate.
Parameters
include Nested
Whether to include nested interfaces and objects.
predicate
A function that defines the condition to be met by an interface or object declaration.