void () { myNameAndButtons.addButtonComponent(myRestartButton = new RestartButton(myPluginModel)); myNameAndButtons.addButtonComponent(myUpdateButton = new UpdateButton()); myUpdateButton.addActionListener(e -> myPluginModel.installOrUpdatePlugin(this, getDescriptorForActions(), myUpdateDescriptor, ModalityState.stateForComponent(myUpdateButton))); myNameAndButtons.addButtonComponent(myInstallButton = new InstallButton(true)); myInstallButton .addActionListener(e -> myPluginModel.installOrUpdatePlugin(this, myPlugin, null, ModalityState.stateForComponent(myInstallButton))); if (myMultiTabs) { myEnableDisableController = SelectionBasedPluginModelAction.createOptionButton(this::createEnableDisableAction, this::createUninstallAction); myNameAndButtons.addButtonComponent(myGearButton = myEnableDisableController.button); myNameAndButtons.addButtonComponent(myEnableDisableButton = myEnableDisableController.bundledButton); } else { myGearButton = SelectionBasedPluginModelAction.createGearButton(this::createEnableDisableAction, this::createUninstallAction); myGearButton.setOpaque(false); myNameAndButtons.addButtonComponent(myGearButton); } for (Component component : myNameAndButtons.getButtonComponents()) { component.setBackground(PluginManagerConfigurable.MAIN_BG_COLOR); } myCustomizer.processPluginNameAndButtonsComponent(myNameAndButtons); }