final Editor editor,
BnfFile bnfFile, List<BnfExpression> occurrences,
String tokenName,
String tokenText,
Map<String, String> tokenMap) throws StartMarkAction.AlreadyStartedException {
final StartMarkAction startAction = StartMarkAction.start(editor, project, REFACTORING_NAME);
BnfListEntry entry = addTokenDefinition(project, bnfFile, tokenName, tokenText, tokenMap);
PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(editor.getDocument());
TemplateBuilderImpl builder = new TemplateBuilderImpl(bnfFile);
PsiElement tokenId = ObjectUtils.assertNotNull(entry.getId());