class Foo { public function create(): static { return new static(); } }