void (TreeModelEvent event) { Object[] childNodes = event.getChildren(); if (childNodes != null) { for (Object childNode : childNodes) { LibraryTableTreeContentElement element = TreeUtil.getUserObject(LibraryTableTreeContentElement.class, childNode); if (element != null && myTree != null) { myTreeModel.expand(element, myTree, path -> { }); } } } }