void (@NotNull final ProgressIndicator indicator) { while (!myExecuteActionHandler.isEnabled() || !myExecuteActionHandler.canExecuteNow()) { if (indicator.isCanceled()) { break; } TimeoutUtil.sleep(300); } if (!indicator.isCanceled()) { executeInConsole(code); } }