<div dir="ltr"><div style="font-family:monospace" class="gmail_default">And to simplify the question, is it possible for me to create some function foo that can do this?</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">record User(String firstName, String lastName) {}</div><div style="font-family:monospace" class="gmail_default">java.lang.reflect.Method getFirstName = foo(User::firstName);</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">Or better yet, like this?</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">java.lang.reflect.RecordComponent getLastName = foo(User::lastName);</div></div>