final PsiIfStatement ifStatement = (PsiIfStatement) parent;
if(ErrorUtil.containsError(ifStatement)){
return false;
}
final PsiExpression condition = ifStatement.getCondition();
<BUG>if(condition == null || !condition.isValid()){
return false;</BUG>
}
if(isSimplifiableAssignment(ifStatement)){
return true;

final PsiIfStatement ifStatement = (PsiIfStatement) parent;
if(ErrorUtil.containsError(ifStatement)){
return false;
}
final PsiExpression condition = ifStatement.getCondition();
if(condition == null){
return false;
}
if(isSimplifiableAssignment(ifStatement)){
return true;
