withParentInterface

fun <T : KoParentInterfaceProvider> List<T>.withParentInterface(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): List<T>

List containing declarations that have at least one parent interface satisfying the provided predicate.

Return

A list containing declarations with at least one parent interface satisfying the predicate.

Parameters

indirectParents

Whether to include indirect parent interfaces.

predicate

A function that defines the condition to be met by a parent interface declaration.