I am looking at a matrix $$\mathbf{M} = \left(\mathbf{I}+k\theta\mathbf{B}^{-1}\mathbf{A}\right)^{-1}\left(\mathbf{I}-k(1-\theta)\mathbf{B}^{-1}\mathbf{A}\right) $$ where $\mathbf{I}$ is the identity matrix, and all matrices are square. It is given that the eigenvalues of $\mathbf{B}^{-1}\mathbf{A}$ are all non-negative. In a text I'm reading the writer writes that we can relate the eigenvalues $\lambda_i$ of $\mathbf{M}$ and the eigenvalues $\eta_i$ of $\mathbf{B}^{-1}\mathbf{A}$ in the following way
$$\lambda_i = \frac{1-k(1-\theta)\eta_i }{1+k\theta\eta_i}. $$
My question is, what allows us to express the eigenvalues of $\mathbf{M}$ ($\lambda_i$) in terms of the eigenvalues of $\mathbf{B}^{-1}\mathbf{A}$ ($\eta_i$) in that way?
The writer does not state why this is possible, and there is no reference any theorem or anything. Unfortunately, it is not a publicized book, so I cannot link to it. The context of this problem is a finite element solver, that uses a finite difference time-discretization to solve the heat equation.