Add recognizer to declared methods and declared variables