void (JScrollBar bar, InertialAnimator animator) { if (bar != null && shouldStart()) { int initValue = bar.getValue(); int targetValue = initValue + lastDelta * getFlingMultiplier(); animator.start(initValue, targetValue, bar::setValue, shouldStop(bar), TouchAnimationSettings.SETTINGS); } }