@Override
	protected boolean canPerformAction(Program program) {
		return program != null && program.canUndo();
	}
Action class for the "Undo" action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/UndoAction.java