Any way to change the superclass of a controlitem with an ide script?

Hello everyone,

I would like to change quickly the superclass of a selected object in the ide (or a group of objects)
is there a way to do it using an ide script, and how ?
I did not find any command that could do it.