with Declaration
fun <T : KoDeclarationProvider> List<T>.withDeclaration(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoBaseDeclaration) -> Boolean): List<T>
List containing declarations that have at least one declaration satisfying the provided predicate.
Return
A list containing declarations with at least one declaration satisfying the predicate.
Parameters
include Nested
Whether to include nested declarations.
include Local
Whether to include local declarations.
predicate
A function that defines the condition to be met by a declaration.