private @Nullable PsiFile createFileCopyWithNewName(VirtualFile vFile, String name) {
    // TODO[ik] remove this. Event handling and generation must be in view providers mechanism since we
    // need to track changes in _all_ psi views (e.g. namespace changes in XML)
    FileTypeManager instance = FileTypeManager.getInstance();
    if (instance.isFileIgnored(name)) return null;
    FileType fileTypeByFileName = instance.getFileTypeByFileName(name);
    return PsiFileFactory.getInstance(myManager.getProject()).createFileFromText(
      name, fileTypeByFileName, "", vFile.getModificationStamp(), true, false);
  }
private @Nullable PsiFile createFileCopyWithNewName(VirtualFile vFile, String name)