void () { MavenSystemIndicesManager.getInstance().setTestIndicesDir(myDir.resolve("MavenIndices")); getIndicesManager().scheduleUpdateIndicesList(null); getIndicesManager().waitForBackgroundTasksInTests(); UIUtil.dispatchAllInvocationEvents(); }