How to tell Java to apply a lambda expressions for a custom functional interface instead for the one from the method's contract?