public static boolean isDocRenderingEnabled(@NotNull Editor editor) {
    if (editor.getEditorKind() == EditorKind.DIFF) return false;
    Boolean value = editor.getUserData(DOC_RENDER_ENABLED);
    boolean enabled;
    try (AccessToken ignored = withClientId(ClientEditorManager.getClientId(editor))) {
      enabled = EditorSettingsExternalizable.getInstance().isDocCommentRenderingEnabled();
    }
    return value == null ? enabled : value;
  }
public static boolean isDocRenderingEnabled(@NotNull Editor editor)