boolean (LookupElement lookupElement) { if (lookupElement instanceof PsiTypeLookupItem) { PsiType type = ((PsiTypeLookupItem)lookupElement).getType(); return type instanceof PsiArrayType && ((PsiArrayType)type).getComponentType() instanceof PsiPrimitiveType; } return false; }