docs: public void configureHistoricVariableInstanceQuery(HistoricVariableInstanceQueryImpl query) {
      Permission readPermission = READ_HISTORY;
      if (isEnsureSpecificVariablePermission()) {
        readPermission = READ_HISTORY_VARIABLE;
      }
      configureQuery(query, PROCESS_DEFINITION, "RES.PROC_DEF_KEY_",  readPermission);
    }