title: Add Java import statements automatically via script
body: <p>Eclipse Java IDE has a shortcut <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>O</kbd> to automatically add unused imports. Where I can find script (bash, python or something other that can be executed via shell) to do this IDE-agnostically, for example, in text editor that can use scripted external tools like gedit?</p>