JComponent (PluginManagerConfigurable configurable) { BorderLayoutPanel pluginsPanel = JBUI.Panels.simplePanel(configurable.createComponent()).addToTop(configurable.getTopComponent()) .withBorder(JBUI.Borders.customLine(JBColor.border(), 0, 1, 0, 0)); configurable.getTopComponent().setPreferredSize(new JBDimension(configurable.getTopComponent().getPreferredSize().width, 40)); return pluginsPanel; }