一、File -> Settings -> Editor -> Color Scheme -> General -> Errors and Warnings -> Unused code -> Unused symbol -> Effects -> OK 二、File -> Settings -> Editor -> Inspections -> Java -> Declaration redundancy -> Unused declaration -> OK 三、有任何问题和建议欢迎留言