public static void showConsoleWithProcess(@NotNull final ConsoleWithProcess consoleWithProcess,@Nullable final JComponent actionListenerComponent,@NotNull final String title,@NotNull final Project project,@Nullable final Collection<Runnable> closeListeners,@NotNull final AnAction... customActions){
  final ConsoleStopProcessAction stopProcessAction=new ConsoleStopProcessAction(consoleWithProcess);
  final Collection<Runnable> resultCloseListeners=new ArrayList<Runnable>(Collections.singleton(stopProcessAction));
  if (closeListeners != null) {
    resultCloseListeners.addAll(closeListeners);
  }
  final AnAction[] resultActions=ArrayUtil.mergeArrays(new AnAction[]{stopProcessAction},customActions);
  showConsole(consoleWithProcess,actionListenerComponent,title,project,resultCloseListeners,resultActions);
}

public static void showConsoleWithProcess ( @ NotNull final ConsoleWithProcess consoleWithProcess , @ Nullable final JComponent actionListenerComponent , @ NotNull final String title , @ NotNull final Project project , @ Nullable final Collection < Runnable > closeListeners , @ NotNull final AnAction ... customActions ) { final ConsoleStopProcessAction stopProcessAction = new ConsoleStopProcessAction ( consoleWithProcess ) ; final Collection < Runnable > resultCloseListeners = new ArrayList < Runnable > ( Collections . singleton ( stopProcessAction ) ) ; if ( closeListeners != null ) { resultCloseListeners . addAll ( closeListeners ) ; } final AnAction [ ] resultActions = ArrayUtil . mergeArrays ( new AnAction [ ] { stopProcessAction } , customActions ) ; showConsole ( consoleWithProcess , actionListenerComponent , title , project , resultCloseListeners , resultActions ) ; }
displays console with toolwindow with " close " and " stop " actions .
