Java Function With Generic Ozempic