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