void (@NotNull State state) { // TODO [konstantin.aleev] temporary check state for invalid values cause by 2399fc301031caea7fa90916a87114b1a98c0177 if (state.viewStates == null) { state.viewStates = new SmartList<>(); return; } for (Object o : state.viewStates) { if (!(o instanceof ServiceViewState)) { state.viewStates = new SmartList<>(); return; } } }