TemplateImpl (@NotNull TemplateToken token, boolean hasChildren, final CustomTemplateCallback callback, @Nullable ZenCodingGenerator generator) { TemplateImpl template = token.getTemplate(); if (generator != null) { assert template != null; template = generator.generateTemplate(token, hasChildren, callback.getContext()); removeVariablesWhichHasNoSegment(template); } return template; }