Code Refactor: Remove name strategy for method parameter resolving

Removed name strategy resolution for methods as it's not supported.
Also improved the error messages when the function is not found.