import java.util.List; import java.util.Map; import java.util.Set; import java.util.function.Function; class CastLambdaParameter { void main(final Map map) { Set> property2formatter = foo(bar((joint) -> map.get((Integer)joint))); } public static Set foo(List property2name) {return property2name != null ? null : null;} public static Set foo(List... property2name) {return property2name != null ? null : null;} public static Set foo(Set property2name) {return property2name != null ? null : null;} public static List bar(TB b) { return null; } }