Since we switched to multi-resolve for imported modules, we have to
modify the contract of QualifiedNameResolver so it doesn't return all
the results across all the paths, but rather stops on the first set
of results for a particular path in sys.path.