I want to learn how can I automatically optimize imports after each save as we do Eclipse(save actions).
In version 'Ultimate 2016.2' it is:
File > Other Settings > Default Settings > Auto Import > Optimize imports on the fly