@Override
	public boolean isEnabledForContext(ActionContext context) {
		// enable this action if any node is a non-built-in data type
		return context instanceof DataTypesActionContext dtac &&
			dtac.getSelectedNodes().stream().anyMatch(node -> {
				return node instanceof DataTypeNode dtNode &&
					!(dtNode.getDataType() instanceof BuiltInDataType);
			});
	}
Allows the user to associate the selected action with a source archive.  An associate data type
allows users to push changes to the source archive and to pull updates from the source archive.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/actions/associate/AssociateDataTypeAction.java