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

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

Settings —> Editor —> Inspections —> General —> Duplicated Code fragment  把对应的勾去掉

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