Derivation (reflection and projection onto plane)
The projection of $\vec x$ onto the plane is $$\begin{align*} \vec x_1' &= \vec x - (\hat n\cdot\vec x)\hat n \\ (x_1)_i &= x_i - n_j x_j n_i \\ &= (\delta_{ij} - n_i n_j) x_j \end{align*}$$ Therefore the matrix is $$ \delta_{ij} - n_in_j. $$
The reflection $\vec x$ about the plane is $$ \vec x_1' = \vec x - 2(\hat n\cdot\vec x)\hat n $$ so the matrix is $$ \delta_{ij} - 2n_in_j. $$