public void transferNeuronsToGroup(List<Neuron> list,NeuronGroup group){
  for (  Neuron neuron : list) {
    neuronList.remove(neuron);
    group.addNeuron(neuron,false);
  }
}

public void transferNeuronsToGroup ( List < Neuron > list , NeuronGroup group ) { for ( Neuron neuron : list ) { neuronList . remove ( neuron ) ; group . addNeuron ( neuron , false ) ; } }
remove the given neurons from the neuron list ( without firing an event ) and add them to the provided group . this is only needed in cases where the neurons have already been added , and must be transferred in to a group . this is what happens in converting loose neurons to a neuron group . it also happens to be the way the add neurons dialog does things ( it defaults to adding neurons , but if a user wants they can be put in a group ) . this is not part of the standard neuron group creation process . todo : confusing ; if possible refactor so that this method is not needed .
