Promise<Object> (@NotNull PlaybackContext context) { final ActionCallback actionCallback = new ActionCallbackProfilerStopper(); WriteAction.runAndWait(() -> { Project project = context.getProject(); PsiManager.getInstance(project).dropResolveCaches(); PsiManager.getInstance(project).dropPsiCaches(); ((StubIndexEx)StubIndex.getInstance()).cleanCaches(); ((PersistentFSImpl)PersistentFS.getInstance()).incStructuralModificationCount(); actionCallback.setDone(); }); return Promises.toPromise(actionCallback); }