My plugin iterates over lots of PsiElements, changing almost all of them.
If the file is large, it gets real slow, sometimes popping up a dialog "optimizing imports" or some such (it is real quick.. I cannot read it).
1. Can I speed up this plugin, deferring whatever those popups are telling me about until everything is done?
2. How do Alert the user when the plugin has completed its magic? Should I lock the UI while the plugin is underway?