private static boolean isChecked(InspectionTreeNode node) {
    return node instanceof InspectionRootNode || node.getChildCount() == 1 && isChecked(node.getParent());
  }
private static boolean isChecked(InspectionTreeNode node)