Clean Up Messy Imports With Optimize Imports
Quickly remove any unused imports and more.
With the Optimize Imports action ⌃⌥O (macOS) / Ctrl+Alt+O (Windows/Linux), you can quickly remove any unused imports, merge imports from the same module, and optionally sort the import statements.