void (Editor editor, Project project, @NlsContexts.Command String commandName) { TemplateState templateState = TemplateManagerImpl.getTemplateState(editor); if (templateState != null) { Runnable runnable = () -> templateState.gotoEnd(true); CommandProcessor.getInstance().executeCommand(project, runnable, commandName, commandName); } }