Object[] (String completionPrefix, PsiElement location, ProcessingContext context) { Set<Object> variants = new HashSet<>(); for (PyType member : myMembers) { if (member != null) { Collections.addAll(variants, member.getCompletionVariants(completionPrefix, location, context)); } } return ArrayUtil.toObjectArray(variants); }