String () { final QualifiedName name = QualifiedNameFinder.findShortestImportableQName(PyFileImpl.this); if (name != null) { final QualifiedName prefix = name.removeTail(1); if (prefix.getComponentCount() > 0) { return prefix.toString(); } } final String relativePath = getRelativeContainerPath(); if (relativePath != null) { return relativePath; } final PsiDirectory psiDirectory = getParent(); if (psiDirectory != null) { return psiDirectory.getVirtualFile().getPresentableUrl(); } return null; }