int (int value) { value = JBUIScale.scale(value); return switch (UIUtil.getComponentStyle(myScrollBar)) { case LARGE -> (int)(value * 1.15); case SMALL -> (int)(value * 0.857); case MINI -> (int)(value * 0.714); case REGULAR -> value; }; }