java - IntelliJ: Search for Checked exceptions, declared in method signature, but never thrown in body -


i've got rather simple intellij/tool question here:
i'm dealing legacy code , started rework stuff here , there. stumbled upon declared (checked) exceptions in method signature, although these exceptions never thrown within body.
these declarations not enforced interface or alike, because problem occurs in mvc controllers, apparently copied , pasted on , on again.
know if there's way search such declared exceptions intellij.
because if put caret @ throws keyword not highlight anything, because declared exception never thrown, editor not show me error marking either, appreciate : )
there option in intellij enable feature or plugin exist job?

thanks in advance.

open settings, select editor -inspections. find java - declaration reduncancy - redundant throws clause , tick it.

then run code analysis, though analyze - inspect code on top level menu.

enter image description here


Comments