How to auto add imports in IntelliJ?
<p>I am new to IntelliJ. I am writing some code and am seeing IntelliJ complain that it can't resolve a class/object:</p>

<p><a href="https://i.stack.imgur.com/sItwS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sItwS.png" alt="enter image description here"></a></p>

<p>It knows to suggest which import to add but I'm looking for a shortcut that will allow me to say "<em>Yes, please auto add that import!</em>". In Eclipse, this is as easy as <code>Cmd+Shift+O</code>...any ideas here?</p>