https://github.com/coolya/maintainable-generators/blob/master/docs/Pitfalls.md#template-calls-with-variables
The last paragraph stats that we don't know why this happens but I think we can easily check by looking at generated code. We should also report this back to jetbrains once verified.