private static void collectInspectionFromNodes(final InspectionConfigTreeNode node,
                                                   final Set<? super HighlightDisplayKey> tools,
                                                   final List<? super InspectionConfigTreeNode> nodes) {
      if (node == null) {
        return;
      }
      nodes.add(node);

      if (node instanceof InspectionConfigTreeNode.Group) {
        for (int i = 0; i < node.getChildCount(); i++) {
          collectInspectionFromNodes((InspectionConfigTreeNode)node.getChildAt(i), tools, nodes);
        }
      } else {
        tools.add(((InspectionConfigTreeNode.Tool)node).getKey());
      }
    }
private static void collectInspectionFromNodes(final InspectionConfigTreeNode node,
                                                   final Set<? super HighlightDisplayKey> tools,
                                                   final List<? super InspectionConfigTreeNode> nodes)