private static StyleSheet getStyleSheet(@NotNull Editor editor) {
    EditorColorsScheme colorsScheme = editor.getColorsScheme();
    Color linkColor = colorsScheme.getColor(DefaultLanguageHighlighterColors.DOC_COMMENT_LINK);
    if (linkColor == null) linkColor = getTextColor(colorsScheme);
    String checkColors = ColorUtil.toHex(linkColor);
    if (!Objects.equals(checkColors, ourCachedStyleSheetCheckColors)) {
      // When updating styles here, consider updating styles in DocumentationHtmlUtil#getDocumentationPaneAdditionalCssRules
      int beforeSpacing = scale(DocumentationHtmlUtil.getSpaceBeforeParagraph());
      int afterSpacing = scale(DocumentationHtmlUtil.getSpaceAfterParagraph());
      @Language("CSS") String input =
        "body {overflow-wrap: anywhere; padding-top: " + scale(2) + "px }" + // supported by JetBrains Runtime
        "pre {white-space: pre-wrap}" +  // supported by JetBrains Runtime
        "a {color: #" + ColorUtil.toHex(linkColor) + "; text-decoration: none}" +
        "." + CLASS_SECTIONS + " {border-spacing: 0}" +
        "." + CLASS_SECTION + " {padding-right: " + scale(5) + "; white-space: nowrap}" +
        "." + CLASS_CONTENT + " {padding: " + beforeSpacing + "px 2px " + afterSpacing + "px 0}";
      StyleSheet result = StyleSheetUtil.loadStyleSheet(input);
      ourCachedStyleSheet = result;
      ourCachedStyleSheetCheckColors = checkColors;
      return result;
    }
    return ourCachedStyleSheet;
  }
private static StyleSheet getStyleSheet(@NotNull Editor editor)