private void invalidateActionsFor(@NotNull VirtualFile file) {
    if (myProject == null || !myProject.isDisposed()) {
      getUndoManager().invalidateActionsFor(createDocumentReference(file));
    }
  }
private void invalidateActionsFor(@NotNull VirtualFile file)