jak się chce psa uderzyć, to kij się znajdzie

Etymology
lit. 'if one wants to hit a dog, then a club will be found'.

Proverb

 * 1)  if someone is expecting to find something, usually through bias or prejudice, then anything can look like the sought thing