importedFrom

This helper function be used to find out if a particular expression (usually a CallExpression or a Reference) is imported through a ImportDeclaration.

It returns a Pair, with the Pair.first being a boolean value whether it was imported and Pair.second the ImportDeclaration if applicable.