PsiExpression lValue = assignment.getLExpression();
<BUG>if (!(lValue instanceof PsiReferenceExpression)) return;
</BUG>
PsiElement element = ((PsiReferenceExpression)lValue).resolve();
<BUG>if (!(element instanceof PsiVariable)) return;
</BUG>
PsiVariable var = (PsiVariable)element;
PsiExpression value = assignment.getRExpression();
<BUG>if (value == null) return;
</BUG>
restoreComments(foreachStatement, body);

PsiExpression lValue = assignment.getLExpression();
if (!(lValue instanceof PsiReferenceExpression)) return null;
PsiElement element = ((PsiReferenceExpression)lValue).resolve();
if (!(element instanceof PsiVariable)) return null;
PsiVariable var = (PsiVariable)element;
PsiExpression value = assignment.getRExpression();
if (value == null) return null;
restoreComments(foreachStatement, body);
