Better error candidate selection for anonymous methods