void (@NotNull TreePath path) { final String key = getPath(path); final Boolean expanded = myExpandedStateHolder.get(key); if (expanded == null) { return; } boolean s = mySuppressCollapseTracking; mySuppressCollapseTracking = true; try { if (expanded) { expandPath(path); } else { collapsePath(path); } } finally { mySuppressCollapseTracking = s; } }