private static @NotNull UndoRedoStacksHolder getStackHolder(@NotNull ClientState state, boolean isUndo) {
    return isUndo ? state.myUndoStacksHolder : state.myRedoStacksHolder;
  }
private static @NotNull UndoRedoStacksHolder getStackHolder(@NotNull ClientState state, boolean isUndo)