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