@Override
  public boolean isHidden(@NotNull Project project, AnActionEvent event) {
    final XDebugSession session = DebuggerUIUtil.getSession(event);
    return session == null || !((XDebugSessionImpl)session).isPauseActionSupported();
  }
@Override
  public boolean isHidden(@NotNull Project project, AnActionEvent event)