GroupTreeNode (@NotNull TreeNode treeNode) { TreeNode currentNode = treeNode; while (currentNode != null && !(currentNode instanceof GroupTreeNode)) { currentNode = currentNode.getParent(); } return (GroupTreeNode)currentNode; }