void () { int offset = getCaretOffset(); final PsiReference referenceAt = myFixture.getFile().findReferenceAt(offset); Assert.assertNotNull(referenceAt); final PsiElement resolve = referenceAt.resolve(); Assert.assertNotNull(resolve); Assert.assertEquals(""" { "type": "string", "enum": ["one", "two"] }""", resolve.getText()); }