Add icon to intention action

I saw that some intention in Idea has Icons.

How can I add that to my own intention? I didnt found any method where I can reference the icon. Thats my intention

Thanks!

1 Like

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

Yes, Iconable is a correct way to provide icons. For example, take a look at the BaseRefactoringIntentionAction from the IntelliJ IDEA Community Edition sources as an example, which provides a lightbulb icon.