'How to make a custom context action in Intellij IDEA using a plugin?

I wanna make a simple context action (the one that appears when you click Alt+Enter) using a plugin. But I can't figure out the group I need to add and how to implement it (using AnAction or another class). I've tried group EditorActions, EditorContextBarMenu, and EditorPopupMenu but they didn't show up on Alt+Enter. Is it possible and if so, how?

Using Intellij 2021.3, Gradle 7.1, JDK 11 and org.jetbrains.intellij:1.5.3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source