I finally get what these two methods are doing, but I'll tell you what I told Andrei:

    private AssertionError unknownStateType() { return new AssertionError("Unknown state type"); }
    ...
    throw unknownStateType();