void () { int offset = getCaretOffset(); final PsiElement resolve = GotoDeclarationAction.findTargetElement(getProject(), myFixture.getEditor(), offset); Assert.assertNotNull(resolve); Assert.assertEquals("\"properties\"", resolve.getText()); final PsiElement parent = resolve.getParent(); Assert.assertTrue(parent instanceof JsonProperty); Assert.assertEquals("schema.json", resolve.getContainingFile().getName()); }