private static @NotNull LanguageLevel guessLanguageLevelWithCaching(@NotNull Project project,
                                                                      @NotNull Supplier<@NotNull Collection<? extends Sdk>> pythonModuleSdks) {
    LanguageLevel languageLevel = LanguageLevel.fromPythonVersion(PROJECT_LANGUAGE_LEVEL.get(project));
    if (languageLevel == null) {
      languageLevel = guessLanguageLevel(pythonModuleSdks.get());
      PROJECT_LANGUAGE_LEVEL.set(project, languageLevel.toPythonVersion());
    }

    return languageLevel;
  }
private static @NotNull LanguageLevel guessLanguageLevelWithCaching(@NotNull Project project,
                                                                      @NotNull Supplier<@NotNull Collection<? extends Sdk>> pythonModuleSdks)