code: protected List<SQLiteUpdateTask> buildTaskList(int previousVersion, int currentVersion) {
  		List<SQLiteUpdateTask> result = new ArrayList<>();
  
  		for (Pair<Integer, ? extends SQLiteUpdateTask> item : this.options.updateTasks) {
  			if (item.value0 - 1 == previousVersion) {
  				result.add(item.value1);
  				previousVersion = item.value0;
  			}
  
  			if (previousVersion == currentVersion)
  				break;
  		}
  
  		if (previousVersion != currentVersion) {
  			Logger.warn(String.format("Can not find version update task from version %s to version %s", previousVersion, currentVersion));
  		}
  
  		return result;
  
  	}
docs: Builds the task list.
  
  @param previousVersion
  the previous version
  @param currentVersion
  the current version
  @return the list