void (final ListSelectionEvent e) { final int idx = getSelectionModel().getMinSelectionIndex(); if (idx >= 0) { final ExistedScopesStatesAndNonExistNames scopeToolState = ((MyTableModel)getModel()).getScopeToolState(idx); final List<ScopeToolState> existedStates = scopeToolState.getExistedStates(); if (existedStates.size() == 1 && scopeToolState.getNonExistNames().isEmpty()) { tableSettings.onScopeChosen(existedStates.get(0)); } } }