KeyResolver: Use test functions (any_of, none_of) instead of find_if.
Using any_of and none_of instead of find_if makes it more clear what we want to achive and reduce the line lengths. Also we don't care about the contition and not about the lement in itself.