Deprecated the StateInterface::can() method