I know how to create a reference to a method that has a String parameter and returns an int, it\'s:
String
int
Function
You can use unthrow wrapper
Function func1 = s -> Unthrow.wrap(() -> myMethod(s));
or
Function func2 = s1 -> Unthrow.wrap((s2) -> myMethod(s2), s1);