An IntelliJ Idea Plugin which adds a menu item to optimize imports across the whole project with the possibility to restrict the files by scope and/or file mask
The action is available via [Code|Optimize Imports for Scope/File Mask].
This plugin provides functionality that is missing in IntelliJ Idea 15.0.3. ( https://youtrack.jetbrains.com/issue/IDEABKL-5372)