void (@NotNull PsiNewExpression expression) { final PsiExpression[] arrayDimensions = expression.getArrayDimensions(); for (PsiExpression arrayDimension : arrayDimensions) { if (wrappedExpression.equals(arrayDimension)) { expectedType = PsiTypes.intType(); break; } } }