protected void attachNotificationTo(final Content content) {
    if (myConsole instanceof ObservableConsoleView observable) {
      AtomicBoolean alertFired = new AtomicBoolean();
      observable.addChangeListener(new ObservableConsoleView.ChangeListener() {
        @Override
        public void textAdded(@NotNull String text, @NotNull ConsoleViewContentType type) {
          if ((type.equals(ConsoleViewContentType.ERROR_OUTPUT) || type.equals(ConsoleViewContentType.NORMAL_OUTPUT)) && alertFired.compareAndSet(false, true)) {
            content.fireAlert();
          }
        }
      }, content);
      RunProfile profile = getRunProfile();
      if (profile instanceof RunConfigurationBase && !ApplicationManager.getApplication().isUnitTestMode()) {
        observable.addChangeListener(new RunContentBuilder.ConsoleToFrontListener((RunConfigurationBase)profile,
                                                                                  myProject,
                                                                                  DefaultDebugExecutor.getDebugExecutorInstance(),
                                                                                  myRunContentDescriptor,
                                                                                  myUi),
                                     content);
      }
    }
  }
protected void attachNotificationTo(final Content content)