boolean (@NotNull PsiNewExpression newExpression, @NotNull PsiVariable variable, int stamp, @NotNull Set<MethodSignature> checkedMethods) { final PsiExpressionList argumentList = newExpression.getArgumentList(); if (argumentList != null) { final PsiExpression[] args = argumentList.getExpressions(); for (final PsiExpression arg : args) { if (expressionAssignsVariable(arg, variable, stamp, checkedMethods)) { return true; } } } final PsiArrayInitializerExpression arrayInitializer = newExpression.getArrayInitializer(); if (expressionAssignsVariable(arrayInitializer, variable, stamp, checkedMethods)) { return true; } final PsiExpression[] arrayDimensions = newExpression.getArrayDimensions(); for (final PsiExpression dim : arrayDimensions) { if (expressionAssignsVariable(dim, variable, stamp, checkedMethods)) { return true; } } return false; }