with All Classes And Interfaces
fun <T : KoClassAndInterfaceProvider> List<T>.withAllClassesAndInterfaces(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassAndInterfaceDeclaration) -> Boolean): List<T>
List containing declarations that have all classes and interfaces satisfying the provided predicate.
Return
A filtered list containing declarations with all classes and interfaces satisfying the predicate.
Parameters
include Nested
Whether to include nested classes and interfaces.
include Local
Whether to include local classes.
predicate
A function that defines the condition to be met by all class and interfaces declarations.