private static boolean updateServiceSettings(List<? extends List<RunDashboardServiceImpl>> newServiceList,
                                               List<RunDashboardServiceImpl> oldServices) {
    RunDashboardServiceImpl oldService = oldServices.get(0);
    RunnerAndConfigurationSettings oldSettings = oldService.getSettings();
    for (List<RunDashboardServiceImpl> newServices : newServiceList) {
      RunnerAndConfigurationSettings newSettings = newServices.get(0).getSettings();
      if (newSettings.getType().equals(oldSettings.getType()) && newSettings.getName().equals(oldSettings.getName())) {
        newServices.remove(0);
        newServices.add(0, new RunDashboardServiceImpl(newSettings, oldService.getContent()));
        for (int i = 1; i < oldServices.size(); i++) {
          RunDashboardServiceImpl newService = new RunDashboardServiceImpl(newSettings, oldServices.get(i).getContent());
          newServices.add(newService);
        }
        return true;
      }
    }
    return false;
  }
private static boolean updateServiceSettings(List<? extends List<RunDashboardServiceImpl>> newServiceList,
                                               List<RunDashboardServiceImpl> oldServices)