public static @Nullable LanguageLevel getVersion(@NotNull VirtualFile file) {
    VersionRootInfo version = getVersionRootInfo(file);
    return version == null ? null : version.level;
  }
public static @Nullable LanguageLevel getVersion(@NotNull VirtualFile file)