static Int syncIncIntVar(Var v) { if (v != null) null; synchronized(v) { v.set(v!+1); ret v!; } }