has Import
Determines whatever the declaration has any import with the specified predicate.
Return
true if the declaration has imports with the specified predicate, false otherwise.
Parameters
predicate
The predicate function to determine if an import satisfies a condition.