Brillouin‐Wigner perturbation theory and the generalized eigenvalue equation