void () { PsiClass childClass = myFixture.addClass("package foo; class Child extends Parent {}"); myFixture.addClass("package foo; class GrandChild extends Child {}"); myFixture.configureByText("Parent.java", "package foo; sealed class Parent permits <caret>Child {}"); assertEmpty(myFixture.filterAvailableIntentions("Make 'Child' final")); IntentionAction makeNonSealed = myFixture.findSingleIntention("Make 'Child' non-sealed"); myFixture.launchAction(makeNonSealed); assertEquals("non-sealed class Child extends Parent {}", childClass.getText()); }