void (@NotNull Supplier<? extends IdeaPluginDescriptor> descriptorFunction) { myEnableDisableButton = createEnableDisableButton(__ -> { List<IdeaPluginDescriptor> descriptors = List.of(descriptorFunction.get()); if (myPluginModel.getState(myPlugin).isDisabled()) { myPluginModel.enable(descriptors); } else { myPluginModel.disable(descriptors); } }); myLayout.addButtonComponent(myEnableDisableButton); myEnableDisableButton.setOpaque(false); myEnableDisableButton.getAccessibleContext() .setAccessibleName(IdeBundle.message("plugins.configurable.enable.checkbox.accessible.name")); }