void (@NotNull Consumer<? super LookupElement> lookupElements, @NotNull PsiElement context, @NotNull PsiClass psiClass) { if (!psiClass.isRecord() || psiClass.getRecordComponents().length == 0 || psiClass.getName() == null) return; // TODO: support deconstruction with type parameters if (psiClass.getTypeParameters().length > 0) return; lookupElements.accept(PrioritizedLookupElement.withPriority(new RecordDeconstructionItem(PatternModel.create(psiClass, context)), -1.0)); }