private void addColumnAttribute(int i,List<ColumnAttribute> list){
  for (  ColumnAttribute attribute : list) {
    if (attribute.getIndex() == i) {
      return;
    }
  }
  list.add(new ColumnAttribute(i));
}

private void addColumnAttribute ( int i , List < ColumnAttribute > list ) { for ( ColumnAttribute attribute : list ) { if ( attribute . getIndex ( ) == i ) { return ; } } list . add ( new ColumnAttribute ( i ) ) ; }
add a setter with the specified index .
