public static XmlFile generateXmlFile(@NotNull Project project, String filetext) {
    return (XmlFile)PsiFileFactory.getInstance(project).createFileFromText("dummy.xml", XMLLanguage.INSTANCE,
                                                                                            filetext);
  }
public static XmlFile generateXmlFile(@NotNull Project project, String filetext)