private void deleteSelectedPhenotype() { final State state = this.getSelectedState(); if (state != null) { final Phenotype phenotype = this.getSelectedPhenotype(); if (phenotype != null) { state.removePhenotype(phenotype); } } }