void (@NotNull Element state) { myPendingState.set(readExternal(state)); StartupManager.getInstance(myProject).runAfterOpened(() -> { ApplicationManager.getApplication().invokeLater(() -> { List<Bookmark> newList = myPendingState.getAndSet(null); if (newList != null) { applyNewState(newList, true); } }, ModalityState.nonModal(), myProject.getDisposed()); }); }