void (@NotNull ChangesListView view, @NotNull ChangesBrowserNode<?> oldRoot, @NotNull ChangesBrowserNode<?> newRoot) { ChangesBrowserNode<?> defaultListNode = getDefaultChangelistNode(newRoot); if (defaultListNode == null) return; if (view.getSelectionCount() == 0) { TreeUtil.selectNode(view, defaultListNode); } if (oldRoot.getFileCount() == 0 && TreeUtil.collectExpandedPaths(view).isEmpty()) { view.expandSafe(defaultListNode); } }