void () { configureByFile(getTestName(false) + ".java"); Set<String> expected = ContainerUtil.newHashSet( "http://www.unicode.org/unicode/standard/standard.html", "http://docs.oracle.com/javase/7/docs/tech-notes/guides/lang/cl-mt.html", "https://youtrack.jetbrains.com/issue/IDEA-131621", "mailto:webmaster@jetbrains.com"); if (Registry.is("ide.symbol.url.references")) { List<UrlReference> refs = PlatformTestUtil.collectUrlReferences(getFile()); assertEquals(expected, refs.stream().map(PsiSymbolReference::getReferenceText).collect(Collectors.toSet())); } else { List<WebReference> refs = PlatformTestUtil.collectWebReferences(getFile()); assertTrue(ContainerUtil.and(refs, PsiReferenceBase::isSoft)); assertEquals(expected, refs.stream().map(PsiReferenceBase::getCanonicalText).collect(Collectors.toSet())); } }