QualifiedName (@NotNull PyImportElement element) { final PyStatement importStatement = element.getContainingImportStatement(); if (importStatement instanceof PyFromImportStatement) { final QualifiedName importSourceQName = ((PyFromImportStatement)importStatement).getImportSourceQName(); final QualifiedName importedQName = element.getImportedQName(); if (importSourceQName != null && importedQName != null) { return importSourceQName.append(importedQName); } } return element.getImportedQName(); }