void () { int offset = getCaretOffset(); final PsiReference referenceAt = myFixture.getFile().findReferenceAt(offset); Assert.assertNotNull(referenceAt); final PsiElement resolve = referenceAt.resolve(); Assert.assertNotNull(resolve); Assert.assertEquals("definitionsSchema.json", resolve.getContainingFile().getName()); }