public Node createTypeVariable(Node name, Node head, List<Node> tail) {
TypeVariable tv = new TypeVariable().astName(createIdentifierIfNeeded(name, currentPos()));
if (head != null) tv.rawExtending().addToEnd(head);
if (tail != null) for (Node t : tail) if (t != null) tv.rawExtending().addToEnd(t);
return posify(tv);
}
public Node createTypeVariables(Node head, List<Node> tail) {
TemporaryNode.OrphanedTypeVariables otv = new TemporaryNode.OrphanedTypeVariables();