Change interface of the method State#setState.