@Override
    public final void update(@NotNull AnActionEvent event) {
      ProcessHandler processHandler = getProcessHandler(event);
      ProcessProxy proxy = ProcessProxyFactory.getInstance().getAttachedProxy(processHandler);
      boolean available = proxy != null && available(proxy);
      Presentation presentation = event.getPresentation();
      if (!available) {
        presentation.setEnabledAndVisible(false);
      }
      else {
        presentation.setVisible(true);
        presentation.setEnabled(!processHandler.isProcessTerminated());
      }
    }
@Override
    public final void update(@NotNull AnActionEvent event)