with All Parents
fun <T : KoParentProvider> List<T>.withAllParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): List<T>
List containing declarations that have all parents satisfying the provided predicate.
Return
A filtered list containing declarations with all parents satisfying the predicate.
Parameters
indirect Parents
Whether to include indirect parents.
predicate
A function that defines the condition to be met by all parent declarations.