we cannot yet annotate state as notnull, so, assert on plugin side