'protected' member in 'final' class
protected members in
final classes cannot be inherited, marking the method as
protected may be confusing. It is better to declare such members as
private or package-visible instead.
After the quick-fix is applied:
As shown in the example, a class can be marked as
final explicitly or implicitly.
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3