@SuppressWarnings("unused") // used externally
  public static @NotNull GradleVersion getGradleVersion(Project project, PsiFile file) {
    VirtualFile virtualFile = file.getVirtualFile();
    if (virtualFile != null) {
      String filePath = virtualFile.getPath();
      return getGradleVersion(project, filePath);
    }
    return GradleVersion.current();
  }
@SuppressWarnings("unused") // used externally
  public static @NotNull GradleVersion getGradleVersion(Project project, PsiFile file)