void (@NotNull PluginsGroup group, @NotNull List<? extends IdeaPluginDescriptor> descriptors, int index, int eventIndex) { for (IdeaPluginDescriptor descriptor : descriptors) { ListPluginComponent pluginComponent = createListComponent(descriptor, group); group.ui.plugins.add(pluginComponent); add(pluginComponent, index); myEventHandler.addCell(pluginComponent, eventIndex); pluginComponent.setListeners(myEventHandler); if (index != -1) { index++; } if (eventIndex != -1) { eventIndex++; } } }