141142143144145146147148149150151
if (!(parent instanceof Body)) { throw new BugHappened("Parent is not a body instance. " + parent, parent); } Body pBody = (Body) parent; pBody.addMembersAfter(newNodes, afterNode); for (ASTCssNode newNode : newNodes) { newNode.setParent(pBody); } }