# Non deprecated ways of getting all quick fixes highlight info

**URL:** <https://platform.jetbrains.com/t/non-deprecated-ways-of-getting-all-quick-fixes-highlight-info/2173>\
**Category:** IntelliJ Platform\
**Created:** [July 2, 2025, 9:41pm UTC](https://platform.jetbrains.com/t/non-deprecated-ways-of-getting-all-quick-fixes-highlight-info/2173 "2025-07-02T21:41:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveramage](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@steveramage](https://platform.jetbrains.com/u/steveramage)\
**Post date:** [July 2, 2025, 9:41pm UTC](https://platform.jetbrains.com/t/non-deprecated-ways-of-getting-all-quick-fixes-highlight-info/2173/1 "2025-07-02T21:41:12Z")

</div>

I remember digging into this a while ago.

I wanted to basically have an assertion step as follows:

```auto
protected fun assertContainsQuickfix(info: HighlightInfo, quickfixName: String) {

      var found = false
      val quickFixes = info.quickFixActionRanges.map {
        it ->
        it.first.action.text
      }

      assertThat(quickFixes, hasItem(quickfixName))
    }

```

I get a warning suggesting that info.quickFixActionRanges is deprecated, but I was unclear about how to rewrite it.

---

<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:** [August 6, 2025, 8:27am UTC](https://platform.jetbrains.com/t/non-deprecated-ways-of-getting-all-quick-fixes-highlight-info/2173/2 "2025-08-06T08:27:36Z")

</div>

> [@steveramage](#):
>
> quickFixActionRanges

It has the JavaDoc:

```java
  /**
   * @deprecated use {@link #findRegisteredQuickFix(BiFunction)} instead
   */
  @Deprecated public @Unmodifiable List<Pair<IntentionActionDescriptor,
     TextRange>> quickFixActionRanges;

```
