settings设置 File——》Settings——》Editor——》General——》Auto Import 勾选:Optimize imports on the fly(动态优化导入)和Add unambiguous imports on the fly(动态明确的导入)