static JSlider looselyBindLiveValueToSlider(IVarWithNotify<Int> lv, JSlider slider) {
  onChange(slider, -> lv.set(intFromSlider(slider)));
  bindToComponent(slider, -> {
    Int value = lv!;
    if (value != null)
      setSliderValue(slider, value);
    else
      lv.set(intFromSlider(slider));
  });
  ret slider;
}