public static <NodeType extends IGraphNode<NodeType>> Collection<NodeType> collectChildren(
      final NodeType node, final INodeFilter<NodeType> filter) {
    Preconditions.checkNotNull(node, "Error: Node argument can't be null");

    return collectNodes(node.getChildren(), filter);
  }
Finds all children of a given node that pass the check by a given node filter.

@param <NodeType> The type of the nodes in the graph.
@param node The parent node of all the child nodes.
@param filter The filter that provides the node check.
@return All child nodes of the parent node that passed the filter check.
java/zylib/src/main/java/com/google/security/zynamics/zylib/types/graphs/GraphAlgorithms.java