JComponent () { if (myPanel == null) { myPanel = new DetectedPluginsPanel(myProject); // all or nothing, single plugin always gets selected automatically boolean checkAll = mySelectAllSuggestions || myPluginToInstall.size() == 1; for (PluginDownloader downloader : myPluginToInstall) { myPanel.setChecked(downloader, checkAll); } myPanel.addAll(myPluginToInstall); } return myPanel; }