#1159: check extension method before magic @method

Extension methods should be checked first because @method annotation can be used just as a hint in IDE.