IntelliJ IDEA “duplicated code fragment(5 lines long)”提示如何关闭

Linux:Settings —> Editor —> Inspections —> General —> Duplicated Code

Mac:Preferences --> Editor —> Inspections —> General —> Duplicated Code fragment

将对应的勾去掉。

IntelliJ IDEA “duplicated code fragment(5 lines long)”提示如何关闭