void (@NotNull ExternalProjectsView externalProjectsView) { assert getExternalProjectsView(externalProjectsView.getSystemId()) == null; myProjectsViews.add(externalProjectsView); if (externalProjectsView instanceof ExternalProjectsViewImpl view) { view.loadState(myState.getExternalSystemsState().get(externalProjectsView.getSystemId().getId()).getProjectsViewState()); view.init(); } }