/** * Returns a copy of the provided {@link ASTNode} list. This method loses code comments. Prefer * using {@link #copyRange(List)}. * * @param <T> the actual node's type * @param nodes the node list to copy * @return a copy of the node list */ @SuppressWarnings("unchecked") public <T extends ASTNode> List<T> copySubtrees(List<T> nodes) { return ASTNode.copySubtrees(ast, nodes); }