void () { int offset = getCaretOffset(); final PsiElement resolve = GotoDeclarationAction.findTargetElement(getProject(), myFixture.getEditor(), offset); Assert.assertNotNull(resolve); Assert.assertEquals("baseSchema.json", resolve.getContainingFile().getName()); Assert.assertEquals("\"findMe\"", resolve.getText()); }