@Override
  public Dimension getPreferredSize() {
    Dimension preferredSize = super.getPreferredSize();
    int width = JBUIScale.scale(300);
    if (preferredSize.width < width){
      preferredSize.width = width;
    }
    return preferredSize;
  }
@Override
  public Dimension getPreferredSize()