Promise<Object> (final @NotNull PlaybackContext context) { AsyncPromise<Object> completion = new AsyncPromise<>(); completeWhenSmartModeIsLongEnough(context.getProject(), completion); return completion; }