@Override
  public void update(@NotNull AnActionEvent e) {
    final Presentation presentation = e.getPresentation();
    final boolean isApplicable = getFile() != null;
    presentation.setEnabledAndVisible(isApplicable);
  }
@Override
  public void update(@NotNull AnActionEvent e)