public final void setToolEnabled(@NotNull String toolShortName, boolean enabled, @Nullable Project project, boolean fireEvents) {
    var tool = getTools(toolShortName, project != null ? project : getDefaultProject());

    if (enabled && tool.isEnabled() && tool.getDefaultState().isEnabled()) {
      return;
    }

    if (enabled) {
      tool.setEnabled(true);
      tool.getDefaultState().setEnabled(true);
    }
    else {
      tool.setEnabled(false);
      if (tool.getNonDefaultTools() == null) {
        tool.getDefaultState().setEnabled(false);
      }
    }

    mySchemeState = SchemeState.POSSIBLY_CHANGED;

    if (fireEvents) {
      myProfileManager.fireProfileChanged(this);
    }
  }
public final void setToolEnabled(@NotNull String toolShortName, boolean enabled, @Nullable Project project, boolean fireEvents)