void (int offset) { myFixture.getEditor().getCaretModel().moveToOffset(offset); IntentionAction intention = myFixture.findSingleIntention("Move member into class"); myFixture.launchAction(intention); }