QualifiedName () { final PyFromImportStatementStub stub = getStub(); if (stub != null) { final QualifiedName qName = stub.getImportSourceQName(); if (qName != null && qName.getComponentCount() == 0) { // relative import only: from .. import the_name return null; } return qName; } final PyReferenceExpression importSource = getImportSource(); if (importSource == null) { return null; } return importSource.asQualifiedName(); }