
return;</BUG>
}
}
<BUG>PsiElement result =
foreachStatement.replace(elementFactory.createStatementFromText(var.getName() + "+=" + builder + ";", foreachStatement));

simplifyAndFormat(project, result);</BUG>
}
<BUG>static void replaceInitializer(PsiForeachStatement foreachStatement,
</BUG>
PsiVariable var,

if (status != InitializerUsageStatus.UNKNOWN) {
PsiExpression initializer = var.getInitializer();
if (ExpressionUtils.isZero(initializer)) {
PsiType type = var.getType();
String replacement = (type.equals(expressionType) ? "" : "(" + type.getCanonicalText() + ") ") + builder;
return replaceInitializer(foreachStatement, var, initializer, replacement, status);
}
}
return foreachStatement.replace(elementFactory.createStatementFromText(var.getName() + "+=" + builder + ";", foreachStatement));
}
static PsiElement replaceInitializer(PsiForeachStatement foreachStatement,
PsiVariable var,
