DfaValue (PsiType type, PsiExpression iteratedValue) { PsiExpression[] expressions = null; if (iteratedValue instanceof PsiNewExpression newExpression) { PsiArrayInitializerExpression initializer = newExpression.getArrayInitializer(); if (initializer != null) { expressions = initializer.getInitializers(); } } else if (iteratedValue instanceof PsiReferenceExpression ref && ref.resolve() instanceof PsiVariable arrayVar) { expressions = ExpressionUtils.getConstantArrayElements(arrayVar); } if (iteratedValue instanceof PsiMethodCallExpression call && LIST_INITIALIZER.test(call)) { expressions = call.getArgumentList().getExpressions(); } return expressions == null ? getFactory().getUnknown() : JavaDfaValueFactory.createCommonValue(getFactory(), expressions, type); }