I'm new to plugin developement and I'm trying to build a simple (ActionScript) plugin that adds references and safety checks when it encounter something like this :
messageBus.map(ClassNameA, "triggerName", ClassNameB, "callbackName")
In that case, ClassNameA.triggerName (which should be of type Trigger) will get a new reference and ClassNameB.callbackName (which is a method) will also get a new reference.
The plugin documentation is weak so I'm having a hard time just trying to figure out what I should do. Anyway, from what I could find, it seems that I should extend PsiReferenceContributor and match a part of a PSI tree with PsiElementPattern, a bit like this plugin is doing
Am I on the right way? If so, can anybody help me understand how I should describe the PsiElementPattern that match the method call above?