void () { myFixture.configureByText("A.java", "class A {{int i = 0; i++; long <caret>i = 0;}}"); IntentionAction intention = myFixture.findSingleIntention(QuickFixBundle.message("navigate.variable.declaration.text", "i")); assertNotNull(intention); myFixture.launchAction(intention); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); assertEquals(14, myFixture.getCaretOffset()); }