public static boolean isSimplifiableAssignment(PsiIfStatement ifStatement){
PsiStatement thenBranch = ifStatement.getThenBranch();
thenBranch = ConditionalUtils.stripBraces(thenBranch);
PsiStatement elseBranch = ifStatement.getElseBranch();
elseBranch = ConditionalUtils.stripBraces(elseBranch);
<BUG>if(ConditionalUtils.isAssignment(thenBranch, "true") &&

ConditionalUtils.isAssignment(elseBranch, "false")){

final PsiExpressionStatement thenExpressionStatement =</BUG>
(PsiExpressionStatement)thenBranch;

public static boolean isSimplifiableAssignment(PsiIfStatement ifStatement){
PsiStatement thenBranch = ifStatement.getThenBranch();
thenBranch = ConditionalUtils.stripBraces(thenBranch);
PsiStatement elseBranch = ifStatement.getElseBranch();
elseBranch = ConditionalUtils.stripBraces(elseBranch);
if(!(ConditionalUtils.isAssignment(thenBranch, "true") &&
ConditionalUtils.isAssignment(elseBranch, "false"))){
return false;
}
final PsiExpressionStatement thenExpressionStatement =
(PsiExpressionStatement)thenBranch;
