Promise<Object> (@NotNull PlaybackContext context) { final ActionCallback actionCallback = new ActionCallbackProfilerStopper(); WriteAction.runAndWait(() -> { Project project = context.getProject(); PsiManager.getInstance(project).dropResolveCaches(); PsiManager.getInstance(project).dropPsiCaches(); KotlinIDEModificationTrackerService.Companion.invalidateCaches(project); if (System.getProperty("idea.kotlin.plugin.use.k2", "false").equals("true")) { KotlinGlobalModificationService.Companion.getInstance(project).publishGlobalSourceModuleStateModification(); } actionCallback.setDone(); }); return Promises.toPromise(actionCallback); }