is it possible to add a template to the getter/setter of a data class?

Viewed 428

for example , I want to change all setters this way:

this.a = StringUtils.trim(a); 

If it's a java bean, I can do this by modifying the code generating template of the ide. But Intellij seems not support to atomically add getter/setter for kotlin data class.

Is there a way to do this?

2 Answers
Related