QualifiedName (@NotNull PyImportElement importElement) { final QualifiedName importedQName = importElement.getImportedQName(); if (importedQName == null) return null; final PyStatement containingImportStatement = importElement.getContainingImportStatement(); final QualifiedName importSourceQName = containingImportStatement instanceof PyFromImportStatement ? ((PyFromImportStatement)containingImportStatement).getImportSourceQName() : null; return importSourceQName == null ? importedQName : importSourceQName.append(importedQName); }