@Override
  public @NotNull PsiFile createFileFromText(@NotNull String name,
                                             @NotNull FileType fileType,
                                             @NotNull CharSequence text,
                                             long modificationStamp,
                                             boolean eventSystemEnabled,
                                             boolean markAsCopy) {
    LightVirtualFile lightVirtualFile = new LightVirtualFile(name, fileType, text, modificationStamp);
    Language language = LanguageUtil.getLanguageForPsi(myManager.getProject(), lightVirtualFile, fileType);
    if (language != null) {
      PsiFile file = trySetupPsiForFile(lightVirtualFile, language, eventSystemEnabled, markAsCopy);
      if (file != null) return file;
    }
    SingleRootFileViewProvider singleRootFileViewProvider =
      new SingleRootFileViewProvider(myManager, lightVirtualFile, eventSystemEnabled);
    PsiPlainTextFileImpl plainTextFile = new PsiPlainTextFileImpl(singleRootFileViewProvider);
    if(markAsCopy) CodeEditUtil.setNodeGenerated(plainTextFile.getNode(), true);
    return plainTextFile;
  }
@Override
  public @NotNull PsiFile createFileFromText(@NotNull String name,
                                             @NotNull FileType fileType,
                                             @NotNull CharSequence text,
                                             long modificationStamp,
                                             boolean eventSystemEnabled,
                                             boolean markAsCopy)