@Override
    public void uiSettingsChanged(@NotNull UISettings uiSettings) {
      if (applyingUiSettings) {
        LOG.warn(new Throwable("Reentrant com.intellij.ui.treeStructure.Tree.MyUISettingsListener.uiSettingsChanged call"));
        return;
      }
      applyingUiSettings = true;
      try {
        // Only set it if the client has never called setToggleClickCount() directly. And if the setting is enabled, of course.
        if (!toggleClickCountOverridden && isExpandWithSingleClickSettingEnabled()) {
          setToggleClickCount(uiSettings.getExpandNodesWithSingleClick() ? 1 : 2);
        }
      }
      finally {
        applyingUiSettings = false;
      }
    }
@Override
    public void uiSettingsChanged(@NotNull UISettings uiSettings)