fix(generate_method): correct method indentation inside generated impl and change gen loc should fix #10619