void () { int i = getSelectedIndex(); AnActionButton removeButton = ToolbarDecorator.findRemoveButton(myFileListDecorator.getActionsPanel()); if (removeButton != null) { removeButton.setEnabled(i >= 0); } }