public static void registerIncreaseLanguageLevelFixes(@NotNull PsiElement element,
                                                        @NotNull JavaFeature feature,
                                                        @NotNull List<? super IntentionAction> registrar) {
    if (PsiUtil.isAvailable(feature, element)) return;
    if (feature.isLimited()) return; //no reason for applying it because it can be outdated
    LanguageLevel applicableLevel = getApplicableLevel(element.getContainingFile(), feature);
    if (applicableLevel == LanguageLevel.JDK_X) return; // do not suggest to use experimental level
    registrar.add(getFixFactory().createIncreaseLanguageLevelFix(applicableLevel));
    registrar.add(getFixFactory().createUpgradeSdkFor(applicableLevel));
    registrar.add(getFixFactory().createShowModulePropertiesFix(element));
  }
public static void registerIncreaseLanguageLevelFixes(@NotNull PsiElement element,
                                                        @NotNull JavaFeature feature,
                                                        @NotNull List<? super IntentionAction> registrar)