static AutoCloseable tempIncIntVar(final Var v) { if (v == null) null; v.set(v!+1); ret autocloseable { v.set(v!-1); }; }