int (int plannedWidth, @NotNull JComponent leftComponent, @NotNull JComponent rightComponent) { return JBUIScale.scale(plannedWidth) - JBInsets.create(rightComponent.getInsets()).left - JBInsets.create(leftComponent.getInsets()).right; }