void () { final PsiFile file = myFixture.getFile(); final String fileText = file.getText(); final int linkTitle = fileText.indexOf("[" + getTestName(true) + "]"); assertTrue(linkTitle >= 0); final int app = fileText.indexOf("app", linkTitle); assertTrue(app >= 0); assertGoodReference(file, app); final int foo = fileText.indexOf("foo", app); assertTrue(foo >= 0); assertGoodReference(file, foo); }