hasImportContaining

Helper extension to check if a file imports any match containing target segments.