void () { myFixture.addClass(""" /** * @see Sub#run */ abstract class Super { abstract void run(); } """); myFixture.configureByText("Sub.java", """ /** * @see Sub#run */ abstract class Sub extends Super { @Override abstract void run<caret>(); } """); IntentionAction intention = myFixture.findSingleIntention("Remove redundant abstract method declaration"); assertEquals( """ /** * @see Super#run */ abstract class Sub extends Super { } ---------- /** * @see Super#run */ abstract class Super { abstract void run(); } """, myFixture.getIntentionPreviewText(intention)); myFixture.launchAction(intention); myFixture.checkResult(""" /** * @see Super#run */ abstract class Sub extends Super { } """); }