with Local Class
fun <T : KoLocalClassProvider> List<T>.withLocalClass(predicate: (KoClassDeclaration) -> Boolean): List<T>
List containing declarations that have at least one local class satisfying the provided predicate.
Return
A list containing declarations with at least one local class satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by a local class declaration.