private void setPanels() {
    myMainPanel.removeAll();
    myPanels = new OneElementComponent[myParameterInfoControllerData.getDescriptors().length];
    int lineGap = UISettings.getInstance().getCompactMode() ? 4 : 8;
    for (int i = 0; i < myParameterInfoControllerData.getDescriptors().length; i++) {
      myPanels[i] = new OneElementComponent();
      myMainPanel.add(myPanels[i], new GridBagConstraints(0, i, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,
                                                          i > 0 && mySimpleDesignMode ? new JBInsets(lineGap, 0, 0, 0) : JBInsets.emptyInsets(), 0, 0));
    }
  }
private void setPanels()