private void checkChildren(final CheckedTreeNode node) {
    final Enumeration children = node.children();
    while (children.hasMoreElements()) {
      final Object o = children.nextElement();
      if (!(o instanceof CheckedTreeNode child)) continue;
      changeNodeState(child, true);
      checkChildren(child);
    }
  }
private void checkChildren(final CheckedTreeNode node)