I found that function interface and getMethod seem to be replaceable, What makes it work?
public class App { public static void main(String[] args) {