code: public boolean isShowUpgradeWizard() {
          HttpSession session = Stapler.getCurrentRequest().getSession(false);
          if(session != null) {
              return Boolean.TRUE.equals(session.getAttribute(SHOW_UPGRADE_WIZARD_FLAG));
          }
          return false;
      }
docs: Whether to show the upgrade wizard