List<RatedResolveResult> (PyImportElement importElement, @NotNull final QualifiedName qName) { PyUtil.verboseOnly(() -> PyPsiUtils.assertValid(importElement)); final PyStatement importStatement = importElement.getContainingImportStatement(); if (importStatement instanceof PyFromImportStatement) { return resolveNameInFromImport((PyFromImportStatement)importStatement, qName); } else { return resolveNameInImportStatement(importElement, qName); } }