格式化代码后多行空行转为一行

Setting  --> 搜索 code style  -->  选择 blank lines标签项   --> 保留最大空行数设置为1

idea method is never used 取消未使用的方法警告

Settings --> Inspections --> Java--> Declaration redundancy --> Unused declaration --> Methods