I'm trying to create a plugin which would at some point add parameters to constructor of some known class. Position of this class is also known. So finding this class and opening its file isn't a big challenge but now i've stopped at this adding parameter part.
I've looked for code of 'Change signature' option from intellij in git repository but couldn't find anything good.
I've tried to get PsiClass and then get constructor as PsiMethod. There is a method getParameterList() but this is only to read this parameters, not to change them.
Anyone knows good way to change/add parameters to class constructor?
Thanks in advance x]