void () { PsiClass aClass = myFixture.addClass("sealed class A {} record A1() extends A{} record A2() extends A{}"); myFixture.configureByText("B.java", "final class B extends <caret>A {}"); checkPreviewAndInvoke(aClass, "Add 'B' to permits list of sealed class 'A'", "sealed class A permits A1, A2, B {} record A1() extends A{} record A2() extends A{}", "sealed class A permits A1, A2, B {}"); }