// "Replace lambda with method reference" "true-preview" import java.util.function.Function; class Example { public static void main(String[] args) { Function f1 = a -> new Example(a); } public Example(String a, String... b) {} }