code: static int computeNewIndex(int index, List<ArrayParameter> arrayParametersSortedAsc) {
          int newIndex = index;
          for(ArrayParameter arrayParameter : arrayParametersSortedAsc) {
              if(index > arrayParameter.parameterIndex) {
                  newIndex = newIndex + arrayParameter.parameterCount - 1;
              } else {
                  return newIndex;
              }
          }
          return newIndex;
      }
docs: Compute the new index of a parameter given the index positions of the array parameters.