adopt_ref_if_nonnull(new T).release_nonnull()
This does the exact thing as `adopt_ref`, which is a recent addition to AK. Note that pointers returned by a bare new (without `nothrow`) are guaranteed not to return null, so they can safely be converted into references.
adopt_{ref,own}_if_nonnull