Optimize Imports

Quickly remove any unused imports and more.

Tip Screenshot

With the Optimize imports action (Ctrl+Alt+O), you can quickly remove any unused imports, merge imports from the same module, and optionally sort the import statements.