Class initializer may be 'static'
Reports instance initializers which may be made
An instance initializer may be static if it does not reference any of its class' non-static members. Static initializers are executed once the class is resolved, while instance initializers are executed on each instantiation of the class.
This inspection doesn't report instance empty initializers and initializers in anonymous classes.
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3