@NotNull
 public static List<RatedResolveResult> resolveNameInImportStatement(
     PyImportElement importElement, @NotNull QualifiedName qName) {
   final PsiFile file = importElement.getContainingFile().getOriginalFile();
   boolean absoluteImportEnabled = isAbsoluteImportEnabledFor(importElement);
   final List<PsiElement> modules = resolveModule(qName, file, absoluteImportEnabled, 0);
   return rateResults(modules);
 }
 @NotNull
 public static List<RatedResolveResult> multiResolveImportElement(
     PyImportElement importElement, @NotNull final QualifiedName qName) {
   if (ApplicationManager.getApplication().isUnitTestMode()) {
     PyPsiUtils.assertValid(importElement);
   }
   final PyStatement importStatement = importElement.getContainingImportStatement();
   if (importStatement instanceof PyFromImportStatement) {
     return resolveNameInFromImport((PyFromImportStatement) importStatement, qName);
   } else {
     return resolveNameInImportStatement(importElement, qName);
   }
 }