@Override
  public boolean isSelected(@NotNull AnActionEvent e) {
    ProjectFrameHelper frame = getFrame();
    if (frame != null) {
      StatusBarEx statusBar = frame.getStatusBar();
      if (statusBar != null) {
        return statusBar.isProcessWindowOpen();
      }
    }

    return false;
  }
@Override
  public boolean isSelected(@NotNull AnActionEvent e)