file –> setting –> Editor –>code type –> inspections –> general –> Duplicated code 去掉Duplicated code的对勾就不会有波浪黄线了