Object[] (String completionPrefix, PsiElement location, ProcessingContext context) { final List<Object> lookupElements = new ArrayList<>(); for (PyClassLikeType parentType : myTypesToMimic) { lookupElements.addAll(Collections2.filter(Arrays.asList(parentType.getCompletionVariants(completionPrefix, location, context)), new CompletionFilter())); } return ArrayUtil.toObjectArray(lookupElements); }