@NotNull
  public @NlsSafe String getPresentableText() {
    PyImportElement importElement = getImportElement();
    final StringBuilder sb = new StringBuilder(getQualifiedName(getImportableName(), myPath, importElement));
    PsiElement parent = null;
    if (importElement != null) {
      parent = importElement.getParent();
    }
    if (parent instanceof PyFromImportStatement fromImportStatement) {
      sb.append(" from ");
      sb.append(StringUtil.repeat(".", fromImportStatement.getRelativeLevel()));
      final PyReferenceExpression source = fromImportStatement.getImportSource();
      if (source != null) {
        sb.append(source.asQualifiedName());
      }
    }
    if (myAsName != null) {
      sb.append(" as ").append(myAsName);
    }
    return sb.toString();
  }
@NotNull
  public @NlsSafe String getPresentableText()