@Override
  public void update(@NotNull AnActionEvent e) {
    super.update(e);
    final Presentation presentation = e.getPresentation();
    if (mySelectedItem == null) {
      presentation.setIcon(AllIcons.FileTypes.Unknown);
      presentation.setText(CoreBundle.message("filetype.unknown.description"));
    }
    else {
      presentation.setIcon(mySelectedItem.getFileType().getIcon());
      presentation.setText(mySelectedItem.getText());
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)