String (@NotNull PsiElement element) { if (element instanceof PyQualifiedNameOwner) { return ((PyQualifiedNameOwner)element).getQualifiedName(); } else { final PsiFileSystemItem item; if (element instanceof PsiDirectory) item = (PsiDirectory)element; else item = element.getContainingFile(); return Objects.toString(QualifiedNameFinder.findShortestImportableQName(item)); } }