ExternalProjectsState () { for (ExternalProjectsView externalProjectsView : myProjectsViews) { if (externalProjectsView instanceof ExternalProjectsViewImpl) { final ExternalProjectsViewState externalProjectsViewState = ((ExternalProjectsViewImpl)externalProjectsView).getState(); final ExternalProjectsState.State state = myState.getExternalSystemsState().get(externalProjectsView.getSystemId().getId()); assert state != null; state.setProjectsViewState(externalProjectsViewState); } } return myState; }