public static Pair<JPanel, JCheckBox> createPanel(JComponent component, @NlsContexts.Label String title) {
    JPanel panel = new JPanel(new BorderLayout()) {
      @Override
      public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        Color c = enabled ? JBColor.GRAY : JBColor.LIGHT_GRAY;
        setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, c), BorderFactory.createEmptyBorder(10, 0, 0, 0)));
      }
    };
    panel.setEnabled(true);
    panel.add(component);

    JCheckBox checkbox = new MavenDisablePanelCheckbox(title, panel);

    JPanel res = new JPanel(new BorderLayout(0, 10));
    res.add(checkbox, BorderLayout.NORTH);
    res.add(panel, BorderLayout.CENTER);

    return Pair.create(res, checkbox);

  }
public static Pair<JPanel, JCheckBox> createPanel(JComponent component, @NlsContexts.Label String title)