@ApiStatus.Internal
  public static void updateRecentPaths(@Nullable Project project, @NotNull VirtualFile file) {
    var fs = file.getFileSystem();
    if (fs instanceof ArchiveFileSystem) {
      file = ((ArchiveFileSystem)fs).getLocalByEntry(file);
      if (file == null) return;
    }

    var path = file.getPath();
    setLastOpenedPath(project, path);
    var recent = Stream.concat(Stream.of(path), getRecentPaths().stream())
      .distinct()
      .limit(RECENT_FILES_LIMIT)
      .collect(Collectors.toList());
    PropertiesComponent.getInstance().setList(RECENT_FILES, recent);
  }
@ApiStatus.Internal
  public static void updateRecentPaths(@Nullable Project project, @NotNull VirtualFile file)