ClassHelper: rewrite method find logic

You can have several methods with the same name but different arguments and
return types...