with Source Declaration
fun <T : KoSourceDeclarationProvider> List<T>.withSourceDeclaration(predicate: (KoDeclarationCastProvider) -> Boolean): List<T>
List containing source declarations with the specified source declaration.
Return
A list containing source declarations with the specified source declaration.
Parameters
predicate
The predicate function to determine if a source declaration satisfies a condition.