void () { StartupManager.getInstance(getProject()).runAfterOpened(() -> { queueLater(new Task.Backgroundable(getProject(), AntBundle.message("progress.text.loading.ant.config"), false) { @Override public void run(@NotNull final ProgressIndicator indicator) { Project project = getProject(); if (project == null || project.isDisposed()) { myInitialized = true; // ensure all clients waiting on isInitialized() are released return; } List<Pair<Element, String>> configFiles = myBuildFilesConfiguration.getAndSet(null); if (configFiles != null) { applyConfigFiles(indicator, configFiles); } } }); }); }