List<String> (PsiElement element, PsiElement originalElement) { List<String> result = new ArrayList<>(); PsiElement docElement = getDocumentationElement(element, originalElement); if (docElement != null) { ContainerUtil.addIfNotNull(result, docElement.getUserData(NonCodeMembersHolder.DOCUMENTATION_URL)); } List<String> list = JavaDocumentationProvider.getExternalJavaDocUrl(element); if (list != null) { result.addAll(list); } return result.isEmpty() ? null : result; }