static AutoCloseable tempEnter(O o) { ret o == null ?: optCast AutoCloseable(callOpt enter(o)); }