with Imports
List containing declarations with any import.
Return
A list containing declarations with any import.
fun <T : KoImportProvider> List<T>.withImports(predicate: (List<KoImportDeclaration>) -> Boolean): List<T>
List containing declarations with import declarations satisfying the predicate.
Return
A list containing declarations with import declarations satisfying the predicate.
Parameters
predicate
A function that defines the condition to be met by the list of import declarations.