void () { Application app = ApplicationManager.getApplication(); app.invokeLater(() -> { for (Project project : ProjectManager.getInstance().getOpenProjects()) { project.putUserData(SCRIPTS_CACHE, null); PsiManagerEx.getInstanceEx(project).dropPsiCaches(); } }, app.getDisposed()); }