with External Parent
fun <T : KoExternalParentProvider> List<T>.withExternalParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): List<T>
List containing declarations that have at least one external parent satisfying the provided predicate. The external parent is a parent defined outside the project codebase (defined inside external library).
Return
A list containing declarations with at least one external parent satisfying the predicate.
Parameters
indirect Parents
Whether to include indirect external parents.
predicate
A function that defines the condition to be met by an external parent declaration.