void (ConfigurationContext context) { final RunManagerEx runManager = (RunManagerEx)context.getRunManager(); DataContext dataContext = context.getDefaultDataContext(); ReadAction .nonBlocking(() -> findExisting(context)) .finishOnUiThread(ModalityState.nonModal(), existingConfiguration -> perform(runManager, existingConfiguration, dataContext)) .submit(AppExecutorUtil.getAppExecutorService()); }