void (@NotNull CachingSimpleNode node) { node.cleanUpCache(); myTreeModel.invalidateAsync(node, true); if (node.getChildren().length == 0) { if (node.getParent() instanceof CachingSimpleNode) { cleanUpEmptyNodes((CachingSimpleNode)node.getParent()); } } }