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