void (@NotNull List<? extends Change> changes) { List<TreePath> paths = new ArrayList<>(); for (Change change : changes) { ContainerUtil.addIfNotNull(paths, myView.findNodePathInTree(change)); } TreeUtil.selectPaths(myView, paths); }