@Nullable
    private static PsiFileSystemItem getPsiFileSystemItem(@NotNull PsiManager manager, @NotNull VirtualFile file) {
      if (!file.isValid()) {
        return null;
      }
      return file.isDirectory() ? manager.findDirectory(file) : manager.findFile(file);
    }
@Nullable
    private static PsiFileSystemItem getPsiFileSystemItem(@NotNull PsiManager manager, @NotNull VirtualFile file)