NodeList<E> nodeList<E extends AstNode>(AstNode owner, [ Iterable<E> elements ])

Returns a newly created list of nodes such that all of the nodes that are added to the list will have their parent set to the given owner. The list will initially be populated with the given elements.

Source

NodeList<E> nodeList<E extends AstNode>(AstNode owner,
    [Iterable<E> elements]);