void (@NotNull PsiJavaCodeReferenceElement ref, @NotNull QuickFixActionRegistrar registrar) { if (!HighlightingFeature.SEALED_CLASSES.isAvailable(ref) && ref.textMatches(PsiKeyword.SEALED)) { ArrayList<IntentionAction> intentions = new ArrayList<>(); registerIncreaseLanguageLevelFixes(ref, HighlightingFeature.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); } } } } }