void () { myFixture.configureByText("Test.java", """ class Test { public void test() { int <caret>variable = 2; } }"""); IntentionAction action = myFixture.findSingleIntention("Split into declaration and assignment"); assertPreviewText(action, """ class Test { public void test() { int variable; variable = 2; } }"""); }