public void removeIndex(IIndex index){
  if (index != null) {
    indices.remove(index);
  }
}

public void removeIndex ( IIndex index ) { if ( index != null ) { indices . remove ( index ) ; } }
removes the given index .
