private static boolean hasChangelist(LocalTask task, LocalChangeList list) {
    for (ChangeListInfo changeListInfo : new ArrayList<>(task.getChangeLists())) {
      if (changeListInfo.id.equals(list.getId())) {
        return true;
      }
    }
    return false;
  }
private static boolean hasChangelist(LocalTask task, LocalChangeList list)