Restricting method name matching