public @Nullable PsiElement createElementFromText(@Nullable String text,
                                                    @NotNull Language language,
                                                    @NotNull IElementType type,
                                                    @Nullable PsiElement context) {
    if (text == null) return null;
    DummyHolder result = DummyHolderFactory.createHolder(myManager, language, context);
    FileElement holder = result.getTreeElement();

    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(language);
    if (parserDefinition == null) {
      throw new AssertionError("No parser definition for " + language);
    }
    Project project = myManager.getProject();
    Lexer lexer = parserDefinition.createLexer(project);
    PsiBuilder builder = PsiBuilderFactory.getInstance().createBuilder(project, holder, lexer, language, text);
    ASTNode node = parserDefinition.createParser(project).parse(type, builder);
    holder.rawAddChildren((TreeElement)node);
    markGenerated(result);
    return node.getPsi();
  }
public @Nullable PsiElement createElementFromText(@Nullable String text,
                                                    @NotNull Language language,
                                                    @NotNull IElementType type,
                                                    @Nullable PsiElement context)