AsyncState () { indicesRegistrationSink.logChangedAndFullyBuiltIndices(LOG, "Following stub indices will be updated:", "Following stub indices will be built:"); if (indicesRegistrationSink.hasChangedIndexes()) { final Throwable e = new Throwable(indicesRegistrationSink.changedIndices()); // avoid direct forceRebuild as it produces dependency cycle (IDEA-105485) AppUIExecutor.onWriteThread(ModalityState.nonModal()).later().submit(() -> forceRebuild(e)); } myInitialized = true; myStateFuture.complete(state); return state; }