public AbstractTreeNode<?> getCoverageNode(Object node) {
    if (node instanceof AbstractTreeNode<?> treeNode) {
      return treeNode;
    }
    if (node instanceof DefaultMutableTreeNode mutableTreeNode) {
      if (mutableTreeNode.getUserObject() instanceof AbstractTreeNode<?> treeNode) {
        return treeNode;
      }
    }
    return null;
  }
public AbstractTreeNode<?> getCoverageNode(Object node)