Diagnostic and code fix for common issues associated with the use of default parameter values