Defining Intentions via Open API

I'm trying to write a new intention -- "add argument to method signature" to occur as an alternative option to the "define method" intention when a method invocation is typed with excess arguments.

I'd like to know if there is any way to attach to the intention handling mechanism. Specifically -- every time my intention should be triggered, the "Define method" intention will also be triggered -- therefore I need to have my intention appear in that menu next to "define method". I can't simply fake a menu that looks like the intentions menu when I detect the trigger situation.




Please sign in to leave a comment.