void (int value) { int delay = 0; Component parent = getParent(); if (parent instanceof JBScrollPane pane) { JViewport viewport = pane.getViewport(); if (viewport != null && ScrollSettings.isEligibleFor(viewport.getView()) && ScrollSettings.isInterpolationEligibleFor(this)) { delay = pane.getInitialDelay(getValueIsAdjusting()); } } if (delay > 0) { myInterpolator.setTarget(value, delay); } else { super.setValue(value); } }