}
public Node createCompilationUnit(Node packageDeclaration, List<Node> importDeclarations, List<Node> typeDeclarations) {
CompilationUnit unit = new CompilationUnit().rawPackageDeclaration(packageDeclaration);
if (importDeclarations != null) for (Node n : importDeclarations) if (n != null) unit.rawImportDeclarations().addToEnd(n);
if (typeDeclarations != null) for (Node n : typeDeclarations) if (n != null) unit.rawTypeDeclarations().addToEnd(n);
return posify(unit);
}
public Node createMethodParameters(Node head, List<Node> tail) {
TemporaryNode.MethodParameters params = new TemporaryNode.MethodParameters();