unusedDecidableInType
This PR upstreams `unusedDecidableInType` linter from mathlib. Stacked on top of #11313. --------- Co-authored-by: thorimur <thomasmurrills@gmail.com> Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>