void () { Runnable dropCaches = () -> { for (Project project : ProjectManager.getInstance().getOpenProjects()) { PsiManager.getInstance(project).dropPsiCaches(); } }; if (myMergingDropCachesRequestors.get() == 0) { ModalityUiUtil.invokeLaterIfNeeded(ModalityState.nonModal(), dropCaches); } else { myDropCachesQueue.queue(Update.create(this, dropCaches)); } }