void () { final TemplateState templateState = TemplateManagerImpl.getTemplateState(myEditor); if (templateState != null) { Runnable runnable = () -> templateState.gotoEnd(true); CommandProcessor.getInstance().executeCommand(myProject, runnable, getCommandName(), getCommandName()); } }