void (ActionEvent e) { if (myTable.isEditing()) return; int row = myTable.getSelectionModel().getAnchorSelectionIndex(); if (row >= 0 && row < getElementCount()) { myShouldRename[row] = !myShouldRename[row]; fireTableDataChanged(); repaintTable(); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myTable, true)); } }