public void addIndex(int idx,IIndex index){
  if (index != null) {
    indices.add(idx,index);
  }
}

public void addIndex ( int idx , IIndex index ) { if ( index != null ) { indices . add ( idx , index ) ; } }
adds the given index at the specified position .
