(Answering my own question)
I tried to explore features of SSR and finally found an helpful pattern.
What I want : find all calls to method myMethod
that are done, but excluding those that are done inside constructor body (i.e. only those that are done in a regular instance method).
The search pattern:
class $Class$ {
$ReturnType$ $MethodName$($ParameterType$ $Parameter$) {$MethodCode$;}
}
This pattern will match all non empty methods. So I still have to restrict $MethodCode$
with a regexp:
.*\.myMethod\(.*
I think it should be possible to improve $MethodCode$ regexp, but I didn't get any false match... so I'm happy with that.