I want to simulate like the user just selected a certain element and pressed F6.
I can see how to create the dialog, and I can see how to invoke move
refactoring, but I don't feel comfortable writing the code between the two
myself. I would also like to avoid manually selecting the desired items to be
moved in the tree. Is there some way to do this easily, or some suggested not so