Internal
  public static @Nullable HtmlChunk getLink(@Nls String title, @NlsSafe String url) {
    String hostname = getHostname(url);
    if (hostname == null) {
      return null;
    }
    String linkText;
    if (title == null) {
      linkText = CodeInsightBundle.message("link.text.documentation.on", hostname);
    }
    else {
      linkText = CodeInsightBundle.message("link.text.element.documentation.on.url", title, hostname);
    }
    return HtmlChunk.link(url, linkText);
  }

Internal
  public static @Nullable HtmlChunk getLink(@Nls String title, @NlsSafe String url) 