void (@NotNull TreeModelEvent event, @NotNull EventType type) { if (type == EventType.StructureChanged) { TreePath path = event.getTreePath(); if (path == null || null == path.getParentPath()) { invalidate(null); } else { Object component = path.getLastPathComponent(); if (component instanceof ProjectFileNode node) { notifyStructureChanged(node.getVirtualFile()); } } } }