File -->Settings
Add unambiguous imports on the fly:自动导入不明确的结构Optimize imports on the fly:自动帮我们优化导入的包