private void ensureBufferingState(boolean transientInMemoryIndices) {
    if (myPreviousDataBufferingState != transientInMemoryIndices) {
      synchronized (myBufferingStateUpdateLock) {
        if (myPreviousDataBufferingState != transientInMemoryIndices) {
          getIndexes().forEach(index -> {
            try {
              index.setBufferingEnabled(transientInMemoryIndices);
            }
            catch (Exception e) {
              LOG.error(e);
            }
          });
          myPreviousDataBufferingState = transientInMemoryIndices;
          VfsEventsMerger.tryLog(() -> "New buffering state: " +
                                       (transientInMemoryIndices ? "transientInMemoryIndices" : "persistentIndices")
          );
        }
      }
    }
  }
private void ensureBufferingState(boolean transientInMemoryIndices)