Object[] (String completionPrefix, PsiElement location, ProcessingContext context) { final List<Object> variants = new ArrayList<>(); for (String attribute : myAttributes) { if (!attribute.equals(completionPrefix)) { variants.add(LookupElementBuilder.create(attribute).withIcon( IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Field))); } } return variants.toArray(); }