builder.entry(entry);
}
for (JetWhenEntry entry : innerEntries) {
builder.entry(entry);
}
<BUG>whenExpression.replace(builder.toExpression(whenExpression.getProject()));

}
public static void introduceWhenSubject(@NotNull JetWhenExpression whenExpression) {
</BUG>
JetExpression subject = getWhenSubjectCandidate(whenExpression);

builder.entry(entry);
}
for (JetWhenEntry entry : innerEntries) {
builder.entry(entry);
}
JetWhenExpression newWhenExpression = builder.toExpression(whenExpression.getProject());
whenExpression.replace(newWhenExpression);
return newWhenExpression;
}
@NotNull
public static JetWhenExpression introduceWhenSubject(@NotNull JetWhenExpression whenExpression) {
JetExpression subject = getWhenSubjectCandidate(whenExpression);
