Promise<Object> (@NotNull PlaybackContext context) { final ActionCallback actionCallback = new ActionCallbackProfilerStopper(); WriteAction.runAndWait(() -> { JavaLibraryModificationTracker.incModificationCount(context.getProject()); actionCallback.setDone(); }); return Promises.toPromise(actionCallback); }