class ListUtils {

  public static <T> boolean addIfNotPresent(List<? super T> list, T element) {
    if (!list.contains(element)) {
      return list.add(element);
    }
    return false;
  }

  private  ListUtils();

}