MessageTreeNode (AnActionEvent e) { XDebuggerTree tree = XDebuggerTree.getTree(e.getDataContext()); if (tree != null) { TreePath[] paths = tree.getSelectionPaths(); if (!ArrayUtil.isEmpty(paths) && paths.length == 1) { Object node = paths[0].getLastPathComponent(); if (isArrayFilter((TreeNode)node)) { return (MessageTreeNode)node; } } } return null; }