LookupElement[] (ExpressionContext context) { SuggestedNameInfo info = getNameInfo(context); if (info == null) return null; LookupElement[] result = new LookupElement[info.names.length]; int i = 0; for (String name : info.names) { result[i++] = LookupElementBuilder.create(name); } return result; }