JComponent (@NotNull PluginsGroupComponent panel, boolean initSelection) { JBScrollPane pane = new JBScrollPane(panel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); pane.setBorder(JBUI.Borders.empty()); if (initSelection) { panel.initialSelection(); } return pane; }