private static List<InspectionConfigTreeNode.Tool> getInspectionsNodes(@NotNull Deque<InspectionConfigTreeNode> queue) {
    List<InspectionConfigTreeNode.Tool> nodes = new ArrayList<>();
    while (true) {
      InspectionConfigTreeNode node = queue.pollFirst();
      if (node == null) {
        break;
      }
      if (node instanceof InspectionConfigTreeNode.Group) {
        for (int i = 0; i < node.getChildCount(); i++) {
          final InspectionConfigTreeNode childNode = (InspectionConfigTreeNode)node.getChildAt(i);
          queue.addLast(childNode);
        }
      }
      else {
        nodes.add((InspectionConfigTreeNode.Tool)node);
      }
    }
    return new ArrayList<>(nodes);
  }
private static List<InspectionConfigTreeNode.Tool> getInspectionsNodes(@NotNull Deque<InspectionConfigTreeNode> queue)