// "Replace field reference with 'Main2.YYY'" "true-preview"
public class Main extends Main2 {
  public void main(String[] args) {
    boolean yyy = new Main().X<caret>XX;
  }

  /**
   * @deprecated
   * @see Main2#YYY
   */
  boolean XXX = false;
}

class Main2 {
  boolean YYY = true;
}
