void () { if (myProjectPath == null) { reportError("Project to inspect is not defined"); printHelpAndExit(); } if (myProfileName == null && myProfilePath == null && myStubProfile == null) { 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); } }