withInterface

fun <T : KoInterfaceProvider> List<T>.withInterface(includeNested: Boolean = true, predicate: (KoInterfaceDeclaration) -> Boolean): List<T>

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

Return

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

Parameters

includeNested

Whether to include nested interfaces.

predicate

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