void () { doTest( """ class AC implements AutoCloseable { void test(boolean condition) { AC ac = condition ? new AC() : null; if (ac == null) return; try (AC ac1 = ac) { ac1.test(false); } } @Override public void close(){} }"""); }