@Override
    int getInterpolationDelay(double rotation) {
      if (!isInterpolationEnabled()) return 0;
      int min = Registry.intValue("idea.true.smooth.scrolling.interpolation.mouse.wheel.delay.min", 60);
      int max = Registry.intValue("idea.true.smooth.scrolling.interpolation.mouse.wheel.delay.max", 140);
      return Math.max(min, Math.min(max, (int)Math.round(max * Math.abs(rotation))));
    }
@Override
    int getInterpolationDelay(double rotation)