How do I refactor imports in IntelliJ?

How do I refactor imports in IntelliJ?

To import packages automatically in Eclipse, use CTRL + SHIFT + O “Organize Imports.” When you hit CTRL + ALT + O “Optimize Imports” in IntelliJ IDEA, it only removes certain unneeded imports and never imports any packages.