What problem are you trying to solve?
It seems this one the missing in the "gang of four" handling all unused stuff.
Checking into localvars and fields it seems parameters are not taken care yet.
It should simply remove as happy path. Maybe some hybrid mode via opt in switch would help to keep public api stable by changing the name to unused to pass inspection and dont make a breaking change on top lvl.
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Additional context
What problem are you trying to solve?
It seems this one the missing in the "gang of four" handling all unused stuff.
Checking into localvars and fields it seems parameters are not taken care yet.
It should simply remove as happy path. Maybe some hybrid mode via opt in switch would help to keep public api stable by changing the name to unused to pass inspection and dont make a breaking change on top lvl.
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Additional context
Are you interested in contributing this feature to OpenRewrite?