Promise<Object> (@NotNull PlaybackContext context) { ActionCallback actionCallback = new ActionCallbackProfilerStopper(); runWhenGradleImportAndIndexingFinished(context, actionCallback); return Promises.toPromise(actionCallback); }