public RequestVersion1 executeFavorites(List<FavoriteTaskVersion1> favorites) {
List<FavoriteTask> tasks = new ArrayList<FavoriteTask>();
Iterator<FavoriteTaskVersion1> iterator = favorites.iterator();
while (iterator.hasNext()) {
FavoriteTaskVersion1 favoriteTaskVersion1 = iterator.next();
FavoriteTaskWrapper wrapper = (FavoriteTaskWrapper) favoriteTaskVersion1;
tasks.add(wrapper.getFavoriteTask());
}
return wrapRequest(gradlePluginLord.addExecutionRequestToQueue(tasks));