private static void markForUndo(@Nullable PsiFile containingFile) {
    if (containingFile == null) {
      return;
    }

    VirtualFile virtualFile = containingFile.getVirtualFile();
    if (virtualFile != null && virtualFile.isInLocalFileSystem()) {
      UndoUtil.markPsiFileForUndo(containingFile);
    }
  }
private static void markForUndo(@Nullable PsiFile containingFile)