public static List<InspectionConfigTreeNode.Tool> getInspectionsNodes(TreePath @Nullable[] paths) {
    if (paths == null) {
      return Collections.emptyList();
    }
    Deque<InspectionConfigTreeNode> q = new ArrayDeque<>(paths.length);
    for (TreePath path : paths) {
      if (path != null) {
        q.addLast((InspectionConfigTreeNode)path.getLastPathComponent());
      }
    }
    return getInspectionsNodes(q);
  }
public static List<InspectionConfigTreeNode.Tool> getInspectionsNodes(TreePath @Nullable[] paths)