public static @Nullable LanguageLevel getVersion(@NotNull PsiFile file) {
    VirtualFile virtualFile = file.getVirtualFile();
    return virtualFile == null ? null : getVersion(virtualFile);
  }
public static @Nullable LanguageLevel getVersion(@NotNull PsiFile file)