void () { final PsiReference reference = myFixture.getReferenceAtCaretPosition("trailingSlashUrl.md"); assertNotNull(reference); // there are two reference providers adding same WebReference (AutoLinkWebReferenceContributor + CommonLinkDestinationReferenceContributor) for (PsiReference unwrappedRef : PsiReferenceUtil.unwrapMultiReference(reference)) { assertTrue((unwrappedRef.resolve()) instanceof FakePsiElement); } }