void () { myFixture.addClass("package junit.framework; public class TestCase {}"); myFixture.configureByText("MainTest.java", """ public class MainTest extends junit.framework.TestCase { public void testFoo() throws Exce<caret>ption { } }"""); myFixture.enableInspections(new RedundantThrowsDeclarationLocalInspection()); myFixture.doHighlighting(); List<IntentionAction> actions = myFixture.getAvailableIntentions(); assertThat(actions.get(0).getText()).startsWith("Remove "); }