void () { myFixture.configureByText("Test.java", """ public class Test { Test(int <caret>a, String b) { } } """); IntentionAction action = myFixture.findSingleIntention("Bind constructor parameters to fields"); assertPreviewText(action, """ public class Test { private final int a; private final String b; Test(int a, String b) { this.a = a; this.b = b; } } """); }