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