Check both the function and the method for the existence via '@requires function' annotation
Merge pull request #1324 from rybakit/4.1

Check both the function and the method via '@requires function' annotation
Merge branch '4.1' into 4.2
Merge branch '4.2'