Allow java else/elif to be expanded mid line.

A common style of writing else and else if in java is like:

```java
if (...) {
  ...
} else if (...) {
  ...
} else {
  ...
}
```