@Nullable
  private static JavaVersion getLanguageLevel(@NotNull IdeaJavaLanguageSettings languageSettings) {
    try {
      return languageSettings.getLanguageLevel();
    }
    catch (IllegalArgumentException e) {
      return null;
    }
  }
@Nullable
  private static JavaVersion getLanguageLevel(@NotNull IdeaJavaLanguageSettings languageSettings)