// "Move up into 'if' statement branches" "true-preview"
class X {
  void test(int x) {
    if (x > 0) System.out.println(">0"); else if (x < 0) {}
    <selection>int y = x * 2;
    System.out.println(y);</selection>
  }
}