Unnecessary 'return' statement
return statements at the end of constructors and methods returning
void. These are unnecessary and may be safely removed.
After the quick-fix is applied:
For more information, see the same inspection in Java.
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3