# Thoughts on API deprecation

**URL:** <https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118>\
**Category:** IntelliJ Platform\
**Created:** [April 20, 2026, 2:59pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118 "2026-04-20T14:59:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [April 20, 2026, 2:59pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118/1 "2026-04-20T14:59:42Z")

</div>

I see that `HelpTooltip:setDescription(String)` became deprecated and should be replaced by `HelpTooltip:setDescription(HtmlChunk)` ([source](https://github.com/JetBrains/intellij-community/blob/master/platform/platform-api/src/com/intellij/ide/HelpTooltip.java#L341)).  
I completely understand the necessity to offer a new method (the commit message explains that), but I’m wondering if marking the original method as deprecated so soon is the best thing to do.  
If my understanding is correct, this change is recent, and affected plugin developers will have to choose between these options:

- continue to use the deprecated API, simply because they can’t drop the 2025 (let’s say 2025.3) compatibility for now.
- move to 2026.1 just for that.
- or, maintain two branches.

I think a better approach would be to offer the new method right now with IJ 2026.1, but do not mark the old method as deprecated for now. Wait at least two major IDE versions (because most developers use the two latest major versions or JetBrains IDEs), then, once IJ 2026.3 is released, mark the old method as deprecated. This would let developers publish their plugins with no additional delay because they use this old method and, once IJ 2026.3 is released, move to IJ 2026.2 as the new minimal supported version. Everybody would be happy.

Also, this is especially frustrating when reading the reason why this method is deprecated. There is nothing critical, this is just that plugin developers may not be aware that the old method takes an HTML fragment as a String, and this is why the new method makes it explicit by using a HtmlChunk. The change will be super easy for most plugin developers (use `HtmlChunk.text(...)`), but they may still have to use the deprecated method for some time.

---

<div class="post-metadata">

**Author:** ![yuriy.artamonov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yuriy.artamonov/32/48_2.png) [@yuriy.artamonov](https://platform.jetbrains.com/u/yuriy.artamonov)\
**Post date:** [April 20, 2026, 3:01pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118/2 "2026-04-20T15:01:57Z")

</div>

> [@jonathanlermitage.1](#):
>
> but I’m wondering if marking the original method as deprecated so soon is the best thing to do.

It was a push from our security team, quite important and exceptional case

---

<div class="post-metadata">

**Author:** ![yuriy.artamonov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yuriy.artamonov/32/48_2.png) [@yuriy.artamonov](https://platform.jetbrains.com/u/yuriy.artamonov)\
**Post date:** [April 20, 2026, 3:02pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118/3 "2026-04-20T15:02:32Z")

</div>

> [@jonathanlermitage.1](#):
>
> but do not mark the old method as deprecated for now

We keep deprecations for quite long periods of time, usually even longer than 3 Major releases

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [April 20, 2026, 3:03pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118/4 "2026-04-20T15:03:18Z")

</div>

The main issue here is that it will slow down plugin verification. Plugins with no warnings are validated faster.

---

<div class="post-metadata">

**Author:** ![yuriy.artamonov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yuriy.artamonov/32/48_2.png) [@yuriy.artamonov](https://platform.jetbrains.com/u/yuriy.artamonov)\
**Post date:** [April 20, 2026, 3:04pm UTC](https://platform.jetbrains.com/t/thoughts-on-api-deprecation/4118/5 "2026-04-20T15:04:35Z")

</div>

> [@jonathanlermitage.1](#):
>
> Plugins with no warnings are validated faster.

I hope it is not about deprecations, but only about Internal API usages, we will recheck with the Support team.
