static SimpleLiveValue varWithNotifyToLiveValue_verbose(Class type, IVarWithNotify var) {
if (var == null) null;
var lv = new SimpleLiveValue(type);
var lvRef = weakRef(lv);
var.onChange(r {
var lv = lvRef!;
if (lv == null)
var.removeChangeListener(this);
else {
var value = var!;
print("varChange " + value);
lv.set(value);
}
});
lv.onChange(-> {
var value = lv!;
print("lvChange " + value);
var.set(value);
});
var value = var!;
print("varToLvInit " + value);
lv.set(value);
ret lv;
}