void (JScrollBar bar) { Object object = bar == null ? null : bar.getUI(); if (object instanceof MacScrollBarUI ui) { if (0 < ui.myAnimationBehavior.getThumbFrame()) ui.myAnimationBehavior.onThumbMove(); } }