added support for type hints of method parameters