LookupElement[] (Expression @NotNull [] params, final ExpressionContext context) { final PsiElement[] vars = getVariables(params, context); if (vars == null || vars.length < 2) return null; Set<LookupElement> set = new LinkedHashSet<>(); for (PsiElement element : vars) { JavaTemplateUtil.addElementLookupItem(set, element); } return set.toArray(LookupElement.EMPTY_ARRAY); }