void (String intentionName, int expectedOffset) { IntentionAction intention = myFixture.findSingleIntention(intentionName); assertNotNull(intention); myFixture.launchAction(intention); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); assertEquals(expectedOffset, myFixture.getCaretOffset()); }