docs: function generateWhenAndNotHelpers(currentState, currentData, parsedStates) {
    const buildWhenFnBody = state => callback => {
      if (currentState.name !== state) {
        return null
      }
      return callback instanceof Function ? callback(currentData) : callback
    }
  
    const buildNotFnBody = state => callback => {
      if (currentState.name === state) {
        return null
      }
      return callback instanceof Function ? callback() : callback
    }
  
    return parsedStates
      .reduce(
        (helpers, state) => ({
          ...helpers,
          [buildFnName('when', state.name)]: buildWhenFnBody(state.name),
          [buildFnName('not', state.name)]: buildNotFnBody(state.name),
        }),
        {}
      )
  }