public static @NlsSafe String getFilePathPresentation(PsiFileSystemItem item) {
    ProjectFileIndex index = ProjectRootManager.getInstance(item.getProject()).getFileIndex();
    VirtualFile file = (item instanceof PsiFile ? ((PsiFile)item).getOriginalFile() : item).getVirtualFile();
    VirtualFile rootForFile = file != null ? index.getContentRootForFile(file):null;

    if (rootForFile != null) {
      String relativePath = VfsUtilCore.getRelativePath(file, rootForFile, File.separatorChar);
      if (relativePath != null) return relativePath;
    }

    return item.getName();
  }
public static @NlsSafe String getFilePathPresentation(PsiFileSystemItem item)