int (int value) { // com.intellij.ui.components.AbstractScrollBarUI.scale float multiplier = switch (UIUtil.getComponentStyle(scrollbar)) { case LARGE -> 1.15f; case SMALL -> 0.857f; case MINI -> 0.714f; case REGULAR -> 1f; }; float scale = JBUIScale.scale(10) * multiplier; return value - (int)scale; }