add ref to java.util.function