Use PsiElement.replaceWithText(...).
Fixes error "langauge is already defined."