Makes a class final if it does not have subclasses.

If there are subclasses, the intention converts the class into a sealed class and provides a list of its subclasses in the permits clause (for subclasses in other compilation units). If the subclasses are not marked as sealed / non-sealed / final, the non-sealed modifier is automatically applied to them.