refactor MethodSignature#parse_parameters