TemplateBuilderImpl (XmlTag xmlTag) { final PsiFile psiFile = PsiFileFactory.getInstance(xmlTag.getProject()) .createFileFromText("dummy.xml", XmlFileType.INSTANCE, xmlTag.getText(), LocalTimeCounter.currentTime(), true, false); return new TemplateBuilderImpl(psiFile); }