@Override
  public void registerFixes(@NotNull PsiJavaCodeReferenceElement ref, @NotNull QuickFixActionRegistrar registrar) {
    if (!PsiUtil.isAvailable(JavaFeature.SEALED_CLASSES, ref) && ref.textMatches(PsiKeyword.SEALED)) {
      ArrayList<IntentionAction> intentions = new ArrayList<>();
      registerIncreaseLanguageLevelFixes(ref, JavaFeature.SEALED_CLASSES, intentions);
      for (IntentionAction intention : intentions) {
        registrar.register(intention);
      }
    }
    if (ref.textMatches(PsiKeyword.RECORD)) {
      PsiElement parent = ref.getParent();
      if (parent != null) {
        if (parent.getParent() instanceof PsiMethod m) {
          if (ConvertRecordToClassFix.tryMakeRecord(m) != null) {
            registrar.register(m.getTextRange(), new ConvertRecordToClassFix(ref).asIntention(), null);
          }
        }
      }
    }
  }
@Override
  public void registerFixes(@NotNull PsiJavaCodeReferenceElement ref, @NotNull QuickFixActionRegistrar registrar)