public void startup() {
    if (myProjectPath == null) {
      reportError("Project to inspect is not defined");
      printHelpAndExit();
    }

    if (isProfileConfigInvalid()) {
      reportError("Profile to inspect with is not defined");
      printHelpAndExit();
    }

    ApplicationManagerEx.getApplicationEx().setSaveAllowed(false);
    try {
      header();
      execute();
    }
    catch (ProcessCanceledException e) {
      reportError(e);
      gracefulExit();
      return;
    }
    catch (Throwable e) {
      LOG.error(e);
      reportError(e);
      gracefulExit();
      return;
    }

    if (myErrorCodeRequired) {
      ApplicationManagerEx.getApplicationEx().exit(true, true);
    }
  }
public void startup()