public static @NotNull @NlsSafe String getPresentablePath(@NotNull Project project, @NotNull PsiFile file) {
    VirtualFile vFile = file.getVirtualFile();
    return vFile != null ? ProjectUtil.calcRelativeToProjectPath(vFile, project) : file.getName();
  }
public static @NotNull @NlsSafe String getPresentablePath(@NotNull Project project, @NotNull PsiFile file)