Corrected generic method constraints