Automatic generation of constructor and extends annotations