class X {
  private final int i;

  public X() {

      i = newMethod();

  }

    private int newMethod() {
        int i;
        i = 0;
        System.out.println(i);
        return i;
    }
}

class X {
  private final int i;

  public X() {

      i = newMethod();

  }

    private int newMethod() {
        final int i;
        i = 0;
        System.out.println(i);
        return i;
    }
}

fix test data: extract variables with existing modifiers