public static @Nullable PsiFile getPsiFile(@NotNull VirtualFile file, @NotNull Project project) {
    return PsiManager.getInstance(project).findFile(file);
  }
public static @Nullable PsiFile getPsiFile(@NotNull VirtualFile file, @NotNull Project project)