void () { if (ApplicationManager.getApplication().isUnitTestMode() && !TestModeFlags.is(CONNECT_IN_UNIT_TEST_MODE_PROPERTY_KEY)) { try { search(); } catch (Throwable e) { LOG.error(e); } try { onFound(); } catch (ExecutionException e) { LOG.error(e); } } else { myProcessIndicator = new BackgroundableProcessIndicator(this); ProgressManager.getInstance().runProcessWithProgressAsynchronously(this, myProcessIndicator); } }