void () { IntentionManagerImpl intentionManager = (IntentionManagerImpl)IntentionManager.getInstance(); while (intentionManager.hasActiveRequests()) { TimeoutUtil.sleep(100); } IntentionManagerSettings intentionManagerSettings = IntentionManagerSettings.getInstance(); myIntentionToCheckStatus.clear(); List<IntentionActionMetaData> intentions = intentionManagerSettings.getMetaData(); for (IntentionActionMetaData metaData : intentions) { myIntentionToCheckStatus.put(metaData, intentionManagerSettings.isEnabled(metaData)); } reset(copyAndSort(intentions)); }