Reports unnecessary final modifiers when used with the record definition.

Example:


  final record R(int a) {} // modifier is unnecessary