Java8 with Selenium WebDriver
Your function or consumer variable not need to be just method reference, you can define whatever method body you want using lambda expressions. I guess you asking for something like this:
BiConsumer<String, WebDriver> findAndClick = (locator, webdriver) -> webdriver.findElement(By.xpath(locator)).click();