It looks like that it is not currently possible to use templates while annotating `@throws`. See https://psalm.dev/r/607d0aaa96 I think it would be reasonable to be able to use templates also when annotating thrown exceptions