with Parent
fun <T : KoParentProvider> List<T>.withParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): List<T>
List containing declarations that have at least one parent satisfying the provided predicate.
Return
A list containing declarations with at least one parent satisfying the predicate.
Parameters
indirect Parents
Whether to include indirect parents.
predicate
A function that defines the condition to be met by a parent declaration.