Make generated methods private final