void () { int offset = getCaretOffset(); final PsiReference referenceAt = myFixture.getFile().findReferenceAt(offset); Assert.assertNotNull(referenceAt); final PsiElement resolve = referenceAt.resolve(); Assert.assertNotNull(resolve); Assert.assertEquals(""" { "enum": [1,4,8] }""", resolve.getText()); final PsiElement parent = resolve.getParent(); Assert.assertTrue(parent instanceof JsonProperty); final JsonValue value = ((JsonProperty)parent).getValue(); Assert.assertTrue(value instanceof JsonObject); final JsonProperty anEnum = ((JsonObject)value).findProperty("enum"); Assert.assertNotNull(anEnum); Assert.assertEquals("[1,4,8]", anEnum.getValue().getText()); }