String (Object comment) { LOG.assertTrue(comment instanceof XmlComment); PsiElement c = (PsiElement)comment; final PsiElement[] children = c.getChildren(); for (PsiElement child : children) { if (child instanceof XmlToken && ((XmlToken)child).getTokenType() == XmlTokenType.XML_COMMENT_CHARACTERS) { return child.getText(); } } return ""; }