In this tutorial http://confluence.jetbrains.com/display/IntelliJIDEA/Quick+Fix it's shown how to fix an error by appending a new PSIElement to a VirtualFile. Therefore a filechooser is provided to select the file the new element should be appended. Instead of a file chooser I'm looking for an "PSIElementChooser", I thought about something like this:
PSIElementDesctiptor descripter = new PSIElementDesctiptor(MyTypes.MY_PSI_TYPE);
I thougt that must be a common use case, however I was not able to find anything, except the TreeClassChooserFactory that seems to work with compiled classes.
thanks for any help,