Optimize HideActionHook and improve related typing.
Review Request #14664 — Created Oct. 31, 2025 and updated — Latest diff uploaded
HideActionHooknow stores the IDs as a set instead of a list, which is
faster for lookup in the case where multiple IDs are provided.This and
ActionHookhave also been updated to take and store immutable
types, which makes it easier to take in values coming from another
source that may be immutable.
Unit tests pass.