void () { doTest(); UiInterceptors.register(new ChooserInterceptor(List.of("Extract side effect", "Delete assignment completely"), "Extract side effect")); IntentionAction action = myFixture.findSingleIntention("Remove redundant assignment"); myFixture.launchAction(action); myFixture.checkResultByFile(getTestName(false) + "_after.java"); }