Functional interface should be code generated