in intellij/src/main/kotlin/motif/intellij/hierarchy/ErrorHierarchyBrowser.kt [88:105]
override fun configureTree(tree: Tree) {
super.configureTree(tree)
tree.addTreeSelectionListener {
tree.addTreeSelectionListener {
val node: Any? = tree.lastSelectedPathComponent
if (node is DefaultMutableTreeNode) {
val descriptor = node.userObject
if (descriptor is ScopeHierarchyErrorDescriptor) {
selectionListener?.onSelectedErrorChanged(
descriptor.element,
descriptor.error,
descriptor.errorMessage,
)
}
}
}
}
}