Promise<Object> (@NotNull PlaybackContext context) { final String one = getText().substring(PREFIX.length()); if (!one.endsWith(POSTFIX)) { dumpError(context, "Expected " + "]"); return Promises.rejectedPromise(); } type(context.getRobot(), getFromShortcut(one.substring(0, one.length() - 1).trim())); return Promises.resolvedPromise(); }