private void collapsePath(@NotNull TreePath path) {
      if (!Boolean.TRUE.equals(expandedState.get(path))) {
        return;
      }
      try {
        fireTreeWillCollapse(path);
      }
      catch (ExpandVetoException eve) {
        return;
      }
      markPathCollapsed(path);
      fireTreeCollapsed(path);
      if (removeDescendantSelectedPaths(path, false) && !isPathSelected(path)) {
        addSelectionPath(path);
      }
      if (accessibleContext != null) {
        ((AccessibleJTree)accessibleContext).fireVisibleDataPropertyChange();
      }
    }
private void collapsePath(@NotNull TreePath path)