protected Dimension updatePreferredSize(JComponent c, Dimension size) {
    JBInsets.addTo(size, ((JTextComponent)c).getMargin());
    size.height = Math.max(size.height, getMinimumHeight(size.height));
    size.width = Math.max(size.width, JBUI.CurrentTheme.TextField.minimumSize().width);
    return size;
  }
protected Dimension updatePreferredSize(JComponent c, Dimension size)