if ("hasMoreElements".equals(foundName)) {
newExpressionText = newVariableName + ".hasNext()";
} else if ("nextElement".equals(foundName)) {
newExpressionText = newVariableName + ".next()";
} else {
<BUG>deleteInitialization = false;
continue;</BUG>
}
final PsiExpression newExpression =
factory.createExpressionFromText(newExpressionText,

if ("hasMoreElements".equals(foundName)) {
newExpressionText = newVariableName + ".hasNext()";
} else if ("nextElement".equals(foundName)) {
newExpressionText = newVariableName + ".next()";
} else {
result = KEEP_INITIALIZATION;
continue;
}
final PsiExpression newExpression =
factory.createExpressionFromText(newExpressionText,
