private static void updateChildrenUi(SettingsTreeNode node) {
      for (Enumeration<TreeNode> children = node.children(); children.hasMoreElements(); ) {
        TreeNode child = children.nextElement();
        if (child instanceof SettingsTreeNode settingsChild) {
          settingsChild.accepted = node.accepted;
          updateChildrenUi(settingsChild);
        }
      }
    }
private static void updateChildrenUi(SettingsTreeNode node)