import type { JSCodeshift , Collection } from 'jscodeshift' ; export const findImportFilter = ( root , j , name ) => root . find ( j . ImportDeclaration ) . filter ( ( path ) => path . node . source . value === name ) ;