void () { PsiFile file = myFixture.configureByText(XmlFileType.INSTANCE, "<!-- foo -->"); XmlComment element = (XmlComment)file.findElementAt(0).getParent(); assertEquals(" foo ", element.getCommentText()); }