@Override
    public void commandStarted(@NotNull CommandEvent event) {
      Document affectedDocument = extractDocumentFromCommand(event);
      if (!worthBothering(affectedDocument, event.getProject())) {
        return;
      }

      String commandName = event.getCommandName();
      cutOperationJustHappened = commandName != null && commandName.equals(getCutActionName());
      if (!myDaemonCodeAnalyzer.isRunning()) {
        return;
      }
      if (LOG.isDebugEnabled()) {
        LOG.debug("cancelling code highlighting by command: " + event.getCommand());
      }
      stopDaemon(false, "Command start");
    }
@Override
    public void commandStarted(@NotNull CommandEvent event)