@Override
	public boolean isAddToPopup(ActionContext context) {
		if (!(context instanceof DataTypesActionContext)) {
			return false;
		}

		TreePath[] selectionPaths = getSelectionPaths(context);
		return getModifiableProjectOrFileDTM(selectionPaths) != null;
	}
Construct Undo/Redo action
@param actionName "Undo" or "Redo" action name
@param plugin {@link DataTypeManagerPlugin}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/actions/AbstractUndoRedoArchiveTransactionAction.java