void (@NotNull DefaultMutableTreeNode node) { Set<Node> nodes = new HashSet<>(); TreeUtil.treeNodeTraverser(node).traverse().filter(Node.class).addAllTo(nodes); collectParentNodes(node, true, nodes); setExcludeNodes(nodes, true, true); }