In classical mechanics:
If a Lagrangian $\mathcal{L}$ is preserved by an infinitesimal change in the state space variables $q_i \to q_i + \varepsilon K_i(q)$, this leads to only second order change in the Lagrangian: $$ 0 = \frac{d\mathcal{L}}{d\varepsilon} = \sum_i \left( \frac{\partial \mathcal{L}}{\partial q_i}K_i + \frac{\partial \mathcal{L}}{\partial \dot{q}_i} \dot{K}_i \right) = \frac{d}{dt}\left(\sum_i \frac{\partial \mathcal{L}}{\partial \dot{q}_i} K_i \right). $$
Then we get our conserved momentum because the rate of change on the right side is $0$.
In quantum mechanics, an observable $A$ commuting with the Hamiltonian, i.e. with $[\hat{H},A] = 0$, corresponds to a symmetry of the time-independent Schrödinger equation $\hat{H}\Psi = E \Psi$. How do we compute the conserved quantity related to $A$? In particular, what is the conserved quantity associated with the identity operator?