void () { try { if (isProfilingEnabled()) { PropertiesComponent.getInstance(project).setValue(PROFILE_INDEXING_COMPONENT, false); PropertiesComponent.getInstance(project).setValue(PROFILE_WITH_ASYNC, false); Profiler.getCurrentProfilerHandler(project).startProfiling(project.getName(), new ArrayList<>()); DumbService.getInstance(project).runReadActionInSmartMode(()->{ runScriptAfterDumb(project); }); } } catch (Exception e) { new ActionCallbackProfilerStopper().reject(e.getMessage()); } }