# Add icon to intention action

**URL:** <https://platform.jetbrains.com/t/add-icon-to-intention-action/3111>\
**Category:** IntelliJ Platform\
**Created:** [November 12, 2025, 1:43pm UTC](https://platform.jetbrains.com/t/add-icon-to-intention-action/3111 "2025-11-12T13:43:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyim97](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/shyim97/32/197_2.png) [@shyim97](https://platform.jetbrains.com/u/shyim97)\
**Post date:** [November 12, 2025, 1:43pm UTC](https://platform.jetbrains.com/t/add-icon-to-intention-action/3111/1 "2025-11-12T13:43:10Z")

</div>

I saw that some intention in Idea has Icons.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/2X/d/d69ff78ba0de25358cf559c867ea48a98393b0d1.png)

How can I add that to my own intention? I didnt found any method where I can reference the icon. [Thats my intention](https://github.com/shopwareLabs/shopware6-phpstorm-plugin/blob/main/src/main/kotlin/de/shyim/shopware6/intentions/ExtendTwigBlockIntention.kt)

Thanks!

---

<div class="post-metadata">

**Author:** ![ldd](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/ldd/32/1238_2.png) [@ldd](https://platform.jetbrains.com/u/ldd)\
**Post date:** [November 13, 2025, 6:55am UTC](https://platform.jetbrains.com/t/add-icon-to-intention-action/3111/2 "2025-11-13T06:55:39Z")

</div>

Try to implement the `com.intellij.openapi.util.Iconable` Interface

---

<div class="post-metadata">

**Author:** ![robert.novotny](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/robert.novotny/32/2046_2.png) [@robert.novotny](https://platform.jetbrains.com/u/robert.novotny)\
**Post date:** [November 14, 2025, 9:46am UTC](https://platform.jetbrains.com/t/add-icon-to-intention-action/3111/3 "2025-11-14T09:46:35Z")

</div>

Yes, `Iconable` is a correct way to provide icons. For example, take a look at the [BaseRefactoringIntentionAction](https://github.com/JetBrains/intellij-community/blob/7bf4fae01eac70a195fc099f85c2296a0b05d0ea/platform/lang-impl/src/com/intellij/refactoring/BaseRefactoringIntentionAction.java#L12) from the IntelliJ IDEA Community Edition sources as an example, which provides a lightbulb icon.
