final PsiExpression newExpression =
factory.createExpressionFromText(newExpressionText,
callExpression);
callExpression.replace(newExpression);
}
<BUG>return deleteInitialization;
}</BUG>
private static String createVariableName(PsiElement context) {
<BUG>final PsiManager manager = context.getManager();
final PsiElementFactory factory = JavaPsiFacade.getInstance(manager.getProject()).getElementFactory();
final Project project = context.getProject();
final GlobalSearchScope scope = GlobalSearchScope.allScope(project);
final PsiClass iteratorClass = JavaPsiFacade.getInstance(manager.getProject()).findClass("java.util.Iterator", scope);
if (iteratorClass == null) {</BUG>
return "iterator";

final PsiExpression newExpression =
factory.createExpressionFromText(newExpressionText,
callExpression);
callExpression.replace(newExpression);
}
return result;
}
private static String createVariableName(PsiElement context) {
