Add support for checking types of methods