private void createEnableDisableButton(@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.setEnabled(!myIsEssential);
    myEnableDisableButton.getAccessibleContext()
      .setAccessibleName(IdeBundle.message("plugins.configurable.enable.checkbox.accessible.name"));
  }
private void createEnableDisableButton(@NotNull Supplier<? extends IdeaPluginDescriptor> descriptorFunction)