void (@NotNull PsiArrayInitializerExpression initializer) { final PsiType type = initializer.getType(); if (!(type instanceof PsiArrayType arrayType)) { expectedType = null; return; } expectedType = arrayType.getComponentType(); }