Integral closure and generic elements