@Override
public PsiLanguageInjectionHost updateText(@NotNull String text) {
ASTNode node = getNode();
ASTNode parent = node.getTreeParent();
final HaxeVarDeclarationPart varDeclarationPart = HaxeElementGenerator.createVarDeclarationPart(getProject(), "a=" + text);
final HaxeVarInit varInit = varDeclarationPart.getVarInit();
final ASTNode outerNode = varInit == null ? null : varInit.getNode();
assert outerNode != null;
parent.replaceChild(node, outerNode);
return (PsiLanguageInjectionHost)outerNode.getPsi();