private JPanel createAdvancedPanel() {
    JPanel panel = new JPanel(new GridBagLayout());
    GridBagConstraints gbConstraints = new GridBagConstraints();
    panel.setBorder(BorderFactory.createEmptyBorder(8,8,4,4));
    gbConstraints.gridy = 0;
    gbConstraints.gridx = 0;
    gbConstraints.gridwidth = 1;
    gbConstraints.gridheight = 1;
    gbConstraints.weightx = 1;
    gbConstraints.weighty = 0;
    gbConstraints.fill = GridBagConstraints.BOTH;
    gbConstraints.insets = JBUI.insets(0, 0, 6, 4);

    panel.add(createWrappingPanel(), gbConstraints);

    gbConstraints.gridy++;
    panel.add(createMarginsPanel(), gbConstraints);

    gbConstraints.gridy++;
    gbConstraints.weighty = 1;
    panel.add(new MyTailPanel(), gbConstraints);

    return panel;
  }
private JPanel createAdvancedPanel()