// "Replace lambda with method reference" "true-preview"

import java.util.concurrent.CompletableFuture;

class Test
{
    public static void main(String[] args)
    {
        CompletableFuture.completedFuture(new Foo()).thenCompose(foo -> foo.g<caret>et());
    }

    private static class Foo
    {
        public CompletableFuture<?> get()
        {
            return null;
        }
    }
}
