I'm looking to add an action to the dynamic EditorPopupMenu when right-clicking on a test method name. Basically, I am trying to replicate the behavior that already exists in Android Studio when you right click on a method:
Any idea how to invoke this action when right clicking on a method name only? Also, only if that method is in a file that exists in the test sources?
I know I can modify visibility using onUpdate, and I think this is the way you determine if a file is in test sources: