List<UrlReference> (@NotNull PsiElement element) { List<UrlReference> result = new SmartList<>(); element.accept(new PsiRecursiveElementWalkingVisitor() { @Override public void visitElement(@NotNull PsiElement element) { result.addAll(PsiSymbolReferenceService.getService().getReferences(element, UrlReference.class)); super.visitElement(element); } }); return result; }