in tooling/rib-intellij-plugin/src/main/kotlin/com/uber/intellij/plugin/android/rib/ui/HierarchyBrowserBase.kt [84:95]
override fun visit(path: TreePath): TreeVisitor.Action {
if (path.lastPathComponent is DefaultMutableTreeNode) {
val node: DefaultMutableTreeNode = path.lastPathComponent as DefaultMutableTreeNode
if (node.userObject is RibHierarchyDescriptor) {
val descriptor = node.userObject as RibHierarchyDescriptor
if (descriptor.getUniqueId() == id) {
return TreeVisitor.Action.INTERRUPT
}
}
}
return TreeVisitor.Action.CONTINUE
}