else {
currIfExpression = null;
builder.elseEntry(elseBranch);
}
} while (currIfExpression != null);
<BUG>ifExpression.replace(builder.toExpression(ifExpression.getProject()));

}</BUG>
private static String combineWhenConditions(JetWhenCondition[] conditions, JetExpression subject) {
int n = conditions.length;

else {
currIfExpression = null;
builder.elseEntry(elseBranch);
}
} while (currIfExpression != null);
JetWhenExpression whenExpression = builder.toExpression(ifExpression.getProject());
if (WhenUtils.checkIntroduceWhenSubject(whenExpression)) {
whenExpression = WhenUtils.introduceWhenSubject(whenExpression);
}
ifExpression.replace(whenExpression);
}
private static String combineWhenConditions(JetWhenCondition[] conditions, JetExpression subject) {
int n = conditions.length;
