以MAC为例: IntelliJ IDEA->Preferences…-> Editor -> Inspections 找到 Duplicated Code ,去掉右边的勾选,然后点击 Apply 即可取消提示。 相关文章: 2021-12-25 2021-12-29 2021-07-08 2022-12-23 2021-09-16 2021-11-22