void (@NotNull final List<? extends PsiExpression> initializers, final LookupElement @NotNull [] suggestedInitializers, @NotNull ModPsiUpdater updater) { LOG.assertTrue(!initializers.isEmpty()); final PsiExpression initializer = Objects.requireNonNull(ContainerUtil.getFirstItem(initializers)); PsiElement context = initializers.size() == 1 ? initializer : PsiTreeUtil.findCommonParent(initializers); if (context == null) return; ModTemplateBuilder builder = updater.templateBuilder(); for (PsiExpression e : initializers) { builder.field(e, new ConstantNode(new PsiElementResult(suggestedInitializers[0].getPsiElement())).withLookupItems( suggestedInitializers)); } }