Java 15 and IntelliJ IDEA – IntelliJ IDEA Blog | JetBrains
Java 15 introduces a new language feature – sealed classes and interfaces. The language syntax allows you to restrict the classes or interfaces that can extend or implement other classes or interfaces
blog.jetbrains.com