public static boolean hasUrlsFor(DocumentationProvider provider, PsiElement element, PsiElement originalElement) {
    final List<String> urls = provider.getUrlFor(element, originalElement);
    if (urls != null && !urls.isEmpty()) return true;
    return false;
  }
public static boolean hasUrlsFor(DocumentationProvider provider, PsiElement element, PsiElement originalElement)