What is a stabilizer of a set?
I know what a stabilizer of $x\in X$ with respect to a group $G$ that acts on $X$ is, specifically: $$\{g\in G:g\cdot x=x\}.$$
But when defining the stabilizer of a set $Y\subset X$ this could go two ways: $$\{g\in G:g\cdot x=x,\quad \forall x\in Y\},$$ $$\{g\in G:g\cdot Y\subset Y\}.$$
Which is it? I couldn't find online the definition.
The later allows for example that if we had $Y=\{a,b\}$ that $g\cdot a =b, g\cdot b =a$ is a viable element of the latter 'stabilizer'.