void () { myFixture.configureByText("Test.java", """ import java.io.IOException; public class A { String test() { return ""; } } class B extends A { String test() throws <caret>IOException { return ""; } }"""); IntentionAction action = myFixture.findSingleIntention("Remove 'IOException' from 'test()' throws list"); assertPreviewText(action, """ import java.io.IOException; public class A { String test() { return ""; } } class B extends A { String test() { return ""; } }"""); action = myFixture.findSingleIntention("Add 'IOException' to 'A.test()' throws list"); assertPreviewText(action, """ import java.io.IOException; public class A { String test() throws IOException { return ""; } } class B extends A { String test() throws IOException { return ""; } }"""); }