Is it best practice to make sealed classes that lacks permits clause?
A sealed class restricts which other classes can extend it, typically achieved using the permits
clause. However, if a sealed class does not specify any permitted subclasses using the permits
clause, it implicitly allows any class within the same compilation unit to extend it. This can lead to unintended inheritance, where classes that should not have been allowed to extend the sealed class can do so at any time.