UpdaterTreeState (@NotNull UpdaterTreeState state) { if (state.equals(myUpdaterState)) return state; UpdaterTreeState oldState = myUpdaterState; if (oldState == null) { myUpdaterState = state; return state; } else { oldState.addAll(state); return oldState; } }