Let $R$ be a commutative ring. We consider the set of ideals which are not finitely generated: $$ \Theta :=\{I ~:~ I\textrm{ is an ideal of } R\textrm{ which is not finitely generated} \}. $$ We assume that $\Theta \neq \varnothing$. By Zorn's lemma, let $I$ be a maximal element of $\Theta$.
Show that $I$ is a maximal ideal of $R$.