Refactored method with scheduler analyzer

Added tests for correctly highlighting method name where usage contains
either local parameter with name of parameter or method takes a
parameter with the name of method in the passed name
Refactored method with scheduler analyzer