private boolean isInstantShutdownPossible() {
    InstantShutdown instantShutdown = Objects.requireNonNull(getService(InstantShutdown.class));
    return instantShutdown.isAllowed() && !ProgressManager.getInstance().hasProgressIndicator();
  }
private boolean isInstantShutdownPossible()