Cannot Infer Functional Interface Type