For Windows/Linux, you can go to
Auto Import ->
Java and make the following changes:
Insert imports on pastevalue to
Add unambigious imports on the flyoption as checked
On a Mac, do the same thing in
Android Studio ->
After this, all unambiguous imports will be added automatically.