// "Adapt 1st argument using 'Collections.singleton()'" "true-preview" import java.util.*; class Test { void method(Set set, double val) { } void m(long l) { method(Collections.singleton(l), l); } }