Promise<Object> (final @NotNull PlaybackContext context) { final ActionCallback actionCallback = new ActionCallbackProfilerStopper(); String input = extractCommandArgument(PREFIX); try { pressKey(EditorKey.valueOf(input), context.getProject()); actionCallback.setDone(); } catch (Throwable e) { actionCallback.reject(e.getMessage()); } return Promises.toPromise(actionCallback); }