void () { if (myInOuterCommand) { return; } if (myCurrentCommandToken == null) { throw new IllegalStateException("Not in a typed action at this time"); } CommandProcessorEx commandProcessorEx = (CommandProcessorEx)CommandProcessor.getInstance(); Project project = myCurrentCommandToken.getProject(); commandProcessorEx.finishCommand(myCurrentCommandToken, null); myCurrentCommandToken = commandProcessorEx.startCommand(project, "", null, UndoConfirmationPolicy.DEFAULT); }