去掉IDEA中public方法显示Method xxx() is never used警告的方法

最近刚刚切换到了IDEA,在使用的过程中,发现很多的public方法都显示警告信息:Method 'xxx' is never used(xxx方法从未被使用),很影响观感。

在Settings中找到如下内容,Editor-Inspections-Java-Declaration redundancy,点击Unused declaration,在右下角找到如下内容,将Methods的级别根据自己的喜好修改即可。

去掉IDEA中public方法显示Method xxx() is never used警告的方法