// "Extract if (a)" "true-preview"
class Test {
  void f(boolean a, boolean b, boolean c, boolean d){
    if (<caret>a && b)
      System.out.println("a&b");//first comment
    else if (a) {
      System.out.println("a");//a
    }
    else if (a && c) {
      System.out.println("a&c");//ac
    }
    else if (a && d) {
      System.out.println("a&d");//ad
    }
  }
}