Parts parts = groupParts(alertSetBuilder, parseTree, noAttrs, children);
// Throw out all but the first Root. The parse phase should have
// already complained about there being too many roots.
List<Root> roots = parts.getRoots();
Root root = roots.isEmpty()
? new NullRoot(parseTree, TemplateName.parseFullyQualifiedDottedName(className))
: roots.get(0);
return new ReparentedTree(parseTree.getSourcePosition(),
alertSetBuilder.buildAndClear(),
root);