```scala
try deriveTemplate(super.transform(tree), _ ++ accessorMethods)
finally accessorMethods.clear()
```