А, понял, согласно этому: Adding a form to a plugin - #3 by Johani
пришлось использовать setupComponent()