I want to add to the context menu in Intellij which pops up when you right click on code.
The use-case is, if you right-click on a code token, it would show a "Thank" button. When this search button is clicked, based on the type of token (is it a class? which package is it part of? is it a method? etc.) it uses all this information to send a request to a server with this info. Is this implementable?
I have been looking at documentation, but haven't found anything that exactly serves this purpose. It is enough if this works for just Java.
Can anyone please point at the docs that cover this?