void (@NotNull String resolvedText, @NotNull String name, int offset, @NotNull String base, boolean isReference) { final PsiElement resolve = isReference ? myFixture.getFile().findReferenceAt(offset).resolve() : GotoDeclarationAction.findTargetElement(getProject(), myFixture.getEditor(), offset); Assert.assertNotNull(resolve); Assert.assertEquals(resolvedText, resolve.getText()); final PsiElement parent = resolve.getParent(); Assert.assertTrue(parent instanceof JsonProperty); Assert.assertEquals(name, ((JsonProperty)parent).getName()); Assert.assertTrue(parent.getParent().getParent() instanceof JsonProperty); Assert.assertEquals(base, ((JsonProperty)parent.getParent().getParent()).getName()); }