String () { final PyImportElementStub stub = getStub(); if (stub != null) { final String asName = stub.getAsName(); return StringUtil.isEmpty(asName) ? null : asName; } final PyTargetExpression element = getAsNameElement(); return element != null ? element.getName() : null; }