with Constructor
fun <T : KoConstructorProvider> List<T>.withConstructor(predicate: (KoConstructorDeclaration) -> Boolean): List<T>
List containing declarations whose at least one constructor matches the given predicate.
Return
A list containing declarations with the specified constructor(s).
Parameters
predicate
The predicate function to determine if a declaration constructor satisfies a condition.