打开设置按照以下路径进入并关闭
Editor -> Inspections -> General -> Duplicated code fragment
Editor
Inspections
General
Duplicated code fragment