@Nullable
  static HighlightInfo.Builder checkFeature(@NotNull PsiElement element,
                                            @NotNull JavaFeature feature,
                                            @NotNull LanguageLevel level,
                                            @NotNull PsiFile file,
                                            @Nullable @NlsContexts.DetailedDescription String message,
                                            @NotNull HighlightInfoType highlightInfoType) {
    if (!feature.isSufficient(level)) {
      message = message == null ? getUnsupportedFeatureMessage(feature, level, file) : message;
      HighlightInfo.Builder info = HighlightInfo.newHighlightInfo(highlightInfoType).range(element).descriptionAndTooltip(message);
      registerIncreaseLanguageLevelFixes(file, feature, info);
      return info;
    }

    return null;
  }
@Nullable
  static HighlightInfo.Builder checkFeature(@NotNull PsiElement element,
                                            @NotNull JavaFeature feature,
                                            @NotNull LanguageLevel level,
                                            @NotNull PsiFile file,
                                            @Nullable @NlsContexts.DetailedDescription String message,
                                            @NotNull HighlightInfoType highlightInfoType)