void (PsiElement identifierCopy, ExpectedTypeInfo[] infos, final Consumer<? super LookupElement> consumer) { for (final PsiType type : ExpectedTypesGetter.extractTypes(infos, true)) { if (type instanceof PsiArrayType) { consumer.consume(createNewArrayItem(identifierCopy, type)); if (shouldAddArrayInitializer(identifierCopy)) { PsiTypeLookupItem item = createNewArrayItem(identifierCopy, type); item.setAddArrayInitializer(); consumer.consume(item); } } } }