Implemet solution to not generate magic method if it's final