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