void (@NotNull Object element) { getUpdater().performUpdate(); DefaultMutableTreeNode node = getNodeForElement(element, false); if (node == null) { List<Object> elements = new ArrayList<>(); while (true) { element = getTreeStructure().getParentElement(element); if (element == null) { break; } elements.add(0, element); } for (Object element1 : elements) { node = getNodeForElement(element1, false); if (node != null) { expand(node, true); } } } }