Pulled "IsSimilarFile" out, since it's useful on its own.