void () { PsiClass aClass = myFixture.addClass("sealed class 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 B {}"); }